Versions Compared

Key

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

...

  • Current Fix Version related
    • currentfixversion:name
    • currentfixversion:releasedate
    • currentaffectversion:name
    • currentaffectversion:releasedate

  • Current user
    • currentuser:id
    • currentuser:fullname
    • currentuser:email
    • currentuser:emaildomain

  • Customfield related
    Single value customfields
    • customfield:<id of the customfield>
      When the customfield is changed a refresh is automatically triggered

    Multiple value customfield (e.g. Multiuser picker, multigroup picker, multiselect)

    • customfield.<id>.<'all' or the index of the value>.<'name' or 'value'>
      When a customfield with multiple values is needed, one might use this format of the placeholder. 
      The third part of the configuration (<'all' or the index of the value>) defines if all values should be retrieved from the multivalue customfield, or a single, specified by its index.
      The fourth part of the configuration (<'name' or 'value'>) allows the user to specify if he/she wants to retrieve the object's name or actual value. You can use the following guide to decide:
      • Multiple user picker (value - username, name - display name)
      • Multiple group picker (value - group name, name - group name). There is no way to get a group id from Jira API, so in this case 'value' alias will return the same as 'name' returns
      • Multiple select (value - id, name - option name)
      • Cascading select (value - id, name - option name)
      • Multiple version picker (value - id, name - version name)
      • Checkboxes (value - id, name - option name)
      • Multi Level Cascade Field (value - value mapped by storeColumn property, name - option label (mapped by viewColumn property)). 
        For Multi Cascade field we also support level's name in the third part of the configuration. (e.g. {customfield.12345.country.name})

        Usecase: In case of a  multipicker customfield with ID 12345 that contains two values ('Belgium' and 'France'), you can use the following placeholders
      • {customfield.12345.all.value} returns 32145, 23145
      • {customfield.12345.all.name} returns 'Belgium', 'France'. It is important to use single quotes instead of double quotes, because double quotes cause errors in some databases
      • {customfield.12345.1.value) returns value of the first selected element
      • {customfield.12345.1.name) returns name of the first selected element

Note

Note that not all customfields are supported. 

We are trying to support all custom fields. Or at least as many as possible.
Custom field placeholder will be populated with string representation of the custom field value, stored in the database. In most of cases it is populated with the value, that is displayed on issue page. 

You can face some problems with custom field which store their value in unusual way or allow to select multiple values.
Third party custom fields (like "nFeed", "TGE" itself) can use absolutely different approaches for storage of their values. "nFeed" stores them as XML, TGE stores only number of the rows in tge grid in the standard Jira tables. So such fields cannot be referenced in placeholders. If you do want to use them in queries, handle their values using pure SQL instead of placeholder. Here is an example for Multiple Select type: Initializing rows from a multi select custom field.

The multivalue customfields placeholder supports auto-reloading of grid on Create and Edit Issue screens. However, auto-reloading can fail for multiuser, multigroup, and version pickers since they do not trigger any change event when using popup for selection.