Create CRM Company field
You can display CRM Company selected from dropdown list in the issue in the custom field type "CRM Company" field.
Enter name of field and add at least 1 company name in Options if this field is present and is required:
Select the screens you need the field to be displayed then press Configure:
And click on Edit Set up CRM company select field and press on Import records from CRM directory:
On this stage you can adjust filter for companies search in custom field. For example on screenshot 'Type ~ ent and multi = Hosting' means that users can select only companies that include 'ent' in type attribute (client, concurent) and multi attribute (it is name of attribute of Multiple Directories type) equals Hosting.
For this filter you can use operators:
(=) - equals
(~) - includes
- list of value
Now you can choose a company from dropdown list in Company field:
CRM Company (Deprecated)
In earlier versions of CRM for Jira you use field type CRM Company (Deprecated) to place company to your issue. This field type has several significant limitations.
- This field type can’t be used for JIRA gadgets and reports for grouping;
- This field type can’t be shown on JIRA Service Desk customer portal;
- While exporting issues to XML or some external add-ons reports you got companies numbers instead of names, like (23) for example;
- There wasn’t autosubstitution for fields of this type in advanced issue search.
That’s why we developed a new custom field type CRM Company. This type was released in CRM 18.104.22.168.
Now you can use field Company in reports and gadgets, with XML and SD portal.
We recommend always use the new field type - CRM Company. Nevertheless you may continue to use old field type CRM Company (Deprecated) if listed above limitations are not important for you.
What if you already use CRM Company (Deprecated) and want to shift to CRM Company?
We tried to make switching to CRM Company fields as easy as possible for users and admins of CRM.
Below are the steps to switch to the new field type.
- Create a new custom field Company new with CRM Company type
- Please add this new field to all screens where there is the old Company field.
- Go to the new field Settings
- Press «Import records from CRM directory»
- Then press «Migrate values from existing cf»
- Choose old field of CRM Company (Deprecated) to import from
- Check one-two issues that the new Company field value is the same as the old Company field value
- In case you have autocomplete set for field Company, set it also for the new field
- Rename the old field to Company (Old)
- Rename the new field to the name that previously had the old field
- Now you may delete the old field from screens. We recommend to not delete it from custom fields or from field configuration to prevent possible errors.
- As the new field has the old name it’s not necessary to change any saved filters, but still you may need to reset some gadgets and reports and agile boards.
All of the above is also all applicable for such field types as CRM Contact, CRM Custom Directory value.
Copy Company Name to Text Field
Some add-ons don't work with CRM Company type field. You can copy Company's name from CRM Company field to some text field or CRM Company (Deprecated) field.
Create a text field to store company's name, go to CRM Company field configuration and select recently created text field in "Copy to" field. You can filter records to be copied by using "Copy JQL".
Hide field if it has no value
You can select if you want to show empty Company field or not with the setting Hide field if it has no value.
Autocomplete of Company Custom Field
With CRM plugin it's possible to complete Company field automatically depending on issue Reporter or Assignee or Contact (CRM custom field)
To set autocomplete go to "Administration\Add-ons\CRM\Companies" menu and scrool down to "Projects whoose new tasks will have an autocompleted company in a custom field"
The field can be filled manually and if it is empty , the system puts 'Not defined' in it so standard JIRA validator of required fields don't return error when no company is written in the required CRM Company field.
CRM Company autocomplete setting requires synchronization of CRM Contacts with Jira Users.