Hi Shai,
Currently it's not possible to do it, but it's possible to extend the functionality of some post-functions in order to make it possible.
I have some questions to do:
-
In you example issues whose ranking should be incremented are those with rankings from 5 to 39. Issues with ranking from 41 to 50 should remain unchanged. Isn't it?
-
In order to make it possible to implement this behavior, "BI Project Rank" custom field should be removed from edit screen, and added to one or more transitions screens, in order to ensure that this field is only edited in transition screens. Is this requirement admisible for you?
-
Is cf[15004] the same field as "BI Project Rank"?
Hi Shai,
I have made available version 2.2.2_beta_6. With this version you can implement your requirements as I explain now:
1) Remove "BI Project Rank" custom field from edit screen.
2) Create a screen "Edit/Set BI Project Rank" which only contains "BI Project Rank" custom field.
3) In statuses where you want to make possitble "BI Project Rank" custom field setting or edition, you should add the following 2 reflexive transitions: "Edit BI Project Rank" and "Set BI Project Rank". Reflexive means that they have the same origin and destination statuses, having the only purpose of displaying a screen.
4) Add "Boolean condition with math, date-time or text-string terms" to transition "Edit BI Project Rank" with the following configuration:
Boolean expression is:
Note that {11900} is code for numeric value of custom field "BI Project Rank" in my particular JIRA instance. Use the corresponding field value in your instance. Do it also in the rest of conditions and post-functions that follow.
5) Add "Boolean condition with math, date-time or text-string terms" to transition "Set BI Project Rank" with the following configuration:
Boolean expression is:
6) Add "Boolean validation with math, date-time or text-string terms" to transitions "Edit BI Project Rank" and "Set BI Project Rank" with the following configuration:
Boolean expression is:
7) Add post-function "Write field on issues returned by JQL query" to transition "Edit BI Project Rank" with the following configuration:
Parameter "Source value that will be written into target field" has value:
Parameter "JQL Query" has value:
Replace "CRM" with the key of project "BI New".
8) Add post-function "Write field on issues returned by JQL query" to transition "Set BI Project Rank" with the following configuration:
Parameter "Source value that will be written into target field" has value:
Parameter "JQL Query" has value:
Replace "CRM" with the key of project "BI New".