Panel |
---|
bgColor | #f5f5f5 |
---|
titleColor | #ffffff |
---|
borderWidth | 0 |
---|
titleBGColor | #000000 |
---|
title | JSU for Jira Server/Data Center |
---|
|
This is the documentation of JSU for Jira Server/Data Center. If you are using JSU on Jira Cloud, see our JSU Cloud documentation. |
Description
The Update Any Issue Field post function updates any field to a specified value after a transition has been completed. This can be a system- or a custom field. The field can be on the issue in transition(within the same issue) or on a related issue, like a subtask, a linked issue, or an issue within an Epic (during the transition on the Epic). In addition to setting values to fields, the Update any Issue Field post function can also add comments.
Configuration
You must specify the field and the desired value. For example:
Precondition
Include Page |
---|
| Precondition Usage | Precondition UsagePreconditions Settings |
---|
| Preconditions Settings |
---|
|
We use the Update any Issue Field post function like this in the 'Start Progress' transition of our Story issue types. If the Story is part of an Epic, the Epic status will be set to
Status |
---|
colour | Blue |
---|
title | In Progress |
---|
|
.
In the past, users forgot to change the Epic status in time and it was left as
. Using JSU this does no more happen.
Update field on all issues related as
The field can be on the issue in transition(within the same issue) or on a related issue, like a subtask, a linked issue, or an issue within an Epic (during the transition on the Epic).
See Related Issues for more explanation on this topic.
Perform As User
Include Page |
---|
| Perform As User |
---|
| Perform As User |
---|
|
Field Value
Include Page |
---|
| Field ValueValues |
---|
| Field ValueValues |
---|
|
Position of the Post Function
It is important to place the post function in the correct order of other post functions.
Create Transition
The Create transition is the first transition, which does not yet have a source status (only destination status - usually Open, but could also be another). Instead of using the Update any Issue Field post function in the Create transition, you might consider configuring a default value for that field.
If you are using the Update any Issue Field post function in the Create transition, you must put it after the "Creates the issue originally." but before the "Re-index an issue to keep indexes in sync with the database." post function. Depending on the field type, you must add the Store Issue post function after the Update Any Issue Field.
Expand |
---|
title | Example configuration in the 'Create' transition - Click here to expand... |
---|
|
In step 4 the "Store Issue" post function is needed, which you must add manually in the workflow configuration. In our example, we use a Workflow Precondition before the Update any Issue Field post function. |
Any other Transition (not Create)
Use the Update any Issue Field post function anywhere before the Update change history for an issue and store the issue in the database post function
Examples
See the above example of a Story changing the Epic Status of its Epic. Or, whenever a parent issue is set to
Status |
---|
colour | Blue |
---|
title | In Progress |
---|
|
, the assignee of all its subtasks could be set to the current user (the one changing the status on the parent).A developer fixes a bug and proceeds in the Jira workflow to the
status (this might be triggered from his code pushed to Bitbucket). The 'Update any Issue Field' now adds the label 'testing-required'.
There are also cases when you need a more complex solution. Have a look at Testing and Fixing Bugs.
For more information on how to configure a post function in Jira, see the Jira documentation.
Supported Field Types
Include Page |
---|
| Supported Field Types |
---|
| Supported Field Types |
---|
|