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




Example: Set a custom field "Urgency" depending on a combined value of issue's priority and "Impact" custom field

Let's suppose we want to set a custom field called "Urgency" depending on issue "Priority" and the value of another custom field called "Impact". We associate a numerical value to issue "Priority" and to custom field "Impact". These two values may be applied to a mathematical function to calculate another numerical value that will represent the "Urgency" of the issue. In our case we simply have summed both values, but we could have used a much more complex formula. Once we get the result of the sum, we revert the process, associating each possible result of the sum to an options in custom field "Urgency".

  1. Use post-function Set a field as a function of other fields to set on virtual fields "Ephemeral number 1" and "Ephemeral number 2" with a numeric value associated to issue "Priority" and the value of custom field "Impact".
  2. Use post-function Mathematical and date-time expression calculator to calculate the sum of "Ephemeral number 1" and "Ephemeral number 2" and store the result on "Ephemeral number 1".
  3. Use post-function Set a field as a function of other fields to set custom field "Urgency" from the value of "Ephemeral number 1".


Using post-function Set a field as a function of other fields we associate a numerical value to each possible value of issue "Priority", and this value is stored in auxiliary field "Ephemeral number 1".

Text to be parsed is:

(Trivial) 0

(Minor) 1

(Major) 2

(Critical) 3

(Blocker) 4


Using post-function " Set a field as a function of other fields" we associate a numerical value to each possible value of custom field "Impact", and this value is stored in auxiliary field "Ephemeral number 2".


Text to be parsed is:

(Low) 0

(Medium) 1

(High) 3


Using post-function " Mathematical and date-time expression calculator" we store in "Ephemeral number 1" the result of summing "Ephemeral number 1" and "Ephemeral number 2". 


Text to be parsed is: {00058} + {00059}


Note that:

  • {00058} is code for numeric value of "Ephemeral number 1"
  • {00059} is code for numeric value of "Ephemeral number 2"

Using post-function Set a field as a function of other fields custom field "Urgency" is set depending on the result of the former sum, which is stored in "Ephemeral number 1". 


Text to be parsed is:

(0)No Urgency

(1)Very Low Urgency

(2)Low Urgency

(3)Moderate Urgency

(4)High Urgency

(5)Very High Urgency

(6)Top Urgency


Once configured "Create Issue" transition looks like this:




Other examples of that function

Set a field as a function of other fields

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



Mathematical and date-time expression calculator

Incoming Links
pageMathematical and date-time expression calculator
labelsexample



Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label = "custom-field"