Set issue fields
A workflow post function that sets the value of a selected field of the current issue or issues related to the current issue. The value can be provided either as text (with optional Nunjucks annotations) or as a JSON value.
When you add this post function to a transition and trigger the transition, the add-on sets one or more field values of the target issue(s) as configured. The values can be provided either as text (with optional Nunjucks annotations) or as a JSON object.
Text - can be a simple string (for text typed fields), the string representation of a number, date, or boolean value, or the string representation of a complex value, such as a Version name, a username, a Project key, etc. Multiple values can be separated by commas. You can also use Nunjucks annotations to insert issue, transition, and current user information into the value, using the
issue
,transition
, andcurrentUser
variables, respectively.JSON value - requires the option
Treat value as JSON
(explained here), it can be a String, a Number, a Boolean, or an Object. It can also be an array of such values.
To find out more about the type of value expected by this post function for different field types, see Expected value for each field type.
Note: When copying field values using this post function, some consideration is required for specific fields in the destination issue(s):
Sprint - If you are setting the Sprint field and you try to copy the value for a closed sprint, that value will not copy. If you are copying multiple sprint values to the Sprint field and one of those values is a closed sprint, that value will not be copied (but the other sprint values will be copied).
To add the 'Set issue fields' post function to a transition:
Click Edit for the workflow that has the transition you wish to add the post function to.
Select the transition in the Workflow Designer.
Click Post Functions in the properties panel (or select the Post Functions tab).
Click Add post function.
Select Set issue fields from the list of post functions.
Click Add. The Set issue fields post function screen will open, where you can configure the post function as needed. See below for more information.
Click Add to complete the configuration and add the post function to the transition.
After adding, move the post function to the appropriate position according to Placing post functions in a transition.
You are viewing the documentation for Jira Cloud.
On this page |
---|