Skip to end of banner
Go to start of banner

Field Values

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

When defining field values, ensure that the value you enter is valid for the datatype of the selected field. Also verify that the context configuration for the project that uses the workflow will allow the modifying of the selected field. If not, the transition may fail at execution time. 

Typically you will use text or numbers as values.

See: Post Function Concatenation Operations

Cascading select lists

For cascading select lists, you can either use the value (name or number) of the option you would like to set, or the option ID. When using the value, there is no need to specify the parent option. For example:

  • Vehicles

    • Car

    • Train

    • Bus

  • Buildings

    • House

    • Skyscraper

Using Vehicles as the parameter for Field Value sets the field content to that option; similarly, if you use Train

Using the option ID for cascading fields

If the set value you define occurs more than once in the cascading select list, use the option ID instead of a name. The option ID lets JSU determine the correct value to assign in the new issue.

Example:

A custom cascading select list called Onboarding Select contains: Marketing and Onboarding - Marketing.

To use the parent option, Marketing, enter the option ID of the parent option. Here, the option ID for the parent option is 10200.

In the Set configuration field, enter 10200 then select Onboarding Select.

The option ID is not the same as a custom field ID. The custom field ID in this example is the ID assigned to the Onboarding Select custom field. Each option configured for the Onboarding Select cascading field is assigned a unique ID. To find an option ID, see Atlassian’s How to find any custom ID to select your preferred method, and then locate the option ID instead of the custom field ID.

Dynamic value macros

  • If you use %%CURRENT_USER%% as the field value, the user who triggered the post function will be set as the value.

  • If you use %%PREVIOUS_USER%% as the field value, the field is updated with the previous user assigned to the field. This is valid for single-user picker fields in the ‘Update Any Issue Field’ post function.

  • If you use %%CURRENT_DATETIME%%as the field value, the current date and time will be set as the value.

  • If you use %%ADD_CURRENT_USER%% as the field value, the user who triggered the post function will be appended to the existing field content.

Obsolete since JSU version 1.4.10: %%ADD_CURRENT_USER%%

Use the option 'Append value' combined with the macro '%%CURRENT_USER%%' instead.

  • No labels