Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
This is the JSU for Jira Server/Data Center documentation. If you are using JSU on Jira Cloud, see our JSU Cloud documentation. |
On this page:
|
Description
The 'Clear Field Value' post function clears the value of a specified field on one or more issues after a transition has been completedis complete.
Configuration
You must specify the field to be cleared, for example, Fix Version.
For more information on how to add a post function to a workflow in Jira, see the Jira documentation.
Precondition
...
Precondition
If you are using preconditions with a JSU post function, you can use the following options to define how the precondition is evaluated:
Ignore precondition (By default every ): Every precondition is ignored which means that the post function will always be performed)
True (: Precondition must be true to execute a post function)
False (: Precondition must be false to execute a post function)
...
Learn more about JSU preconditions in Workflow Preconditions.
Issue relation
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), or the result of a JQL query.
See Related Issues for more details on each option.
Perform
...
As User
Include Page | ||||
---|---|---|---|---|
|
Field
You must specify the field to be cleared on the related issues, for example, Fix Version.
Position of the post function
It Jira transitions include essential post functions that are executed in a specific order. When adding JSU post functions to a transition it is important to place position the post function in the correct order with your other with respect to the essential post functions.
...
‘Create’ transition
The ‘Create' transition is the an issue’s first transition , which and does not have a source status (only destination status - usually Open). Instead of using the ‘Clear Field Value’ post function in the ‘Create’ transition, you might configure no default value for that custom field and don't show it on the Create screen. If you are using If you add the ‘Clear Field Value’ post function in to the 'Create’ ‘Create’ transition, you must put should position it before Jira’s 'Create the "Creates the issue originally" ' post function except when clearing labels , which that need to be cleared after the issue has been created.
Any other transition (not
...
‘Create’)
Put Position the ‘Clear Field Value’ post function anywhere before the "Update ‘Update change history for an issue and store the issue in the database" post function.
Example
A workflow is configured so the 'Close' transition has the 'Clear Field Value' post function. The function is configured to clear the 'Security Level' field. If a user closes an issue on this workflow, the value of the 'Security Level' field will be cleareddatabase’ post function.
Supported field types
Include Page | ||||
---|---|---|---|---|
|