Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Before using SIL™ User Picker Custom Field custom field check out the Simple Issue Language™ documentation for a better grasp of SIL™ usage and capabilities.

...

Adding a new SIL™ User Picker Custom Field custom field is as easy as adding any other custom field.

...

  1. Log into your Jira as Admin.
  2. Go to Administration > Custom Fields > Add Custom Field, and select SIL™ User Picker Custom Field from custom field from the list.
  3. Follow the on-screen instructions.



  4. Go to the Configure link.
    Image Removed
    Click , and click the Edit SIL™ Script link  link to define the a SIL™ script.
    Image Removed
    Click the Save button and the script is
    Image Added

  5. Write a SIL™ script.
    Click Save, and the script will get associated with the current custom field. The values returned by the script are the values available for the custom field.

    Image Added


In our example, the SIL™ SIL User picker Picker custom field is configured to filter only users that are members of group the jira-developers or jiraJira-administrators group.

To set the number of characters that user autocomplete feature is triggered for the field use the global autocomplete threshold parameter from the User Group Picker PRO™ PRO configuration page. The default value for the autocomplete threshold is set to 2.

For example, if you choose value select "3" for the autocomplete threshold in on the configuration page as shown in the example above example, the list of suggested users matching the criteria in the user group picker are will be shown after the third character in the input is introduced:entered.

Note
Note that this is a global configuration parameter, that will be applied for all user picker custom fields.

...

  1. Go to an issue and check the users available for selection by clicking the user picker icon or by typing something in the input.
    Only users retrieved from the SIL™ script will be available for selection (in this case administrators and developers).

    Image Modified

...


  1. Select the necessary user and save it on the current issue. The field value appears on the right side of the view issue screen, in the

...

  1. People section

...

  1. :

3. Edit the field on a view issue screen by clicking on the inline edit icon next to the field to see suggested users filtered accordingly to the SIL™ script.

That's it.

Other

...

examples

Here are certain more SIL™ scripts examples that you can use to configure your SIL™ user picker fields. Basically, by means of SIL™ you can restrict the users selection to whatever any criteria you want.

Issue Assignees

...

Code Block
return usersInGroups("jira-developers");

...

Searching issues

When creating you create a new SIL™ SIL User Picker custom field, the default searcher set is SIL™ User Picker and Group Searcher. This filters the available users for the custom field in issue navigator accordingly to the configured SIL™ script.

However, when using SIL™ issue specific variables in the script (for instance project, key, assignee, reporter), you have to use Jira's standard searcher User Picker™ and Picker and Group Searcher for that field, or otherwise you will not be able to select any value for filtering.

Note

When using the SIL™ User Picker & Group Searcher, user suggestions in issue navigator will be retrieved based on the SIL™ script from the field's global configuration.


  1. Go to Administration ->Custom > Custom fields
  2. Click Edit for the desired custom field
  3. Choose the proper Search Template for your custom field

...

  1. .
  2. Perform a re-index

...

  1. After the Search Templates are changed for all the custom field that you want, perform a re-index in Jira for the search to work fine.

...

  1. After a searcher has been set for the SIL™ User Picker custom field, you can perform a search for all issues containing the desired value for that custom field

    Image Modified

For a detailed explanation on searching issues more details about searching tickets in Jira, you can check the Searching for Issues tutorial from the Jira documentation.