Versions Compared

Key

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


Section


Column
width30%600px


Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1



Column




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:


Text to be parsed isSetting rules used are

(Preapproved)Approved

(Planned)Approved

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


Image Modified


(info) IMPORTANTIMPORTANT: 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")