Versions Compared

Key

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

Table of Contents
maxLevel1

Features used to implement the example



Example: Transition an issue automatically depending on the value of a field

We have a field called “Change Type”. At issue creation, we want to check the value of the field, and if the value is “Preapproved” or “Planned”, we want to move the issue through the workflow into “Approved” status.

That behavior can be implemented inserting post-function Set a field as a function of other fields at transition "Create Issue" using the following configuration:

Setting rules used areText to be parsed is

(Preapproved)Approved

(Planned)Approved


Once configured, transition "Create Issue" will look like this:

Image Modified


IMPORTANT(info) IMPORTANT: The solution described requires the existence of a transition from initial status of the workflow (usually "Open") and status "Approved", since this transition is used by the post-function to move the issue. Conditions and validators in the transition needs to be satisfied in order to being able to move the issue through the transition.



Other examples of that function

Incoming Links
pageSet a field as a function of other fields
labelsexample

Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label in ("custom-field","transition")