Set field using a conditional expression in a post-function
Hello,
Do you think it should be possible to have a post-function to build expression like this one :
If Customfield_xxx == A Customfield_yyy = X Else if (Customfield_xxx == B Or Customfield_xxx != C) Customfield_yyy = Y Else Customfield_yyy = W End
Thx in advance for your answer.
Comments (5)
-
repo owner -
repo owner - changed status to resolved
I close this issue. Please, reopen it if you are not able to implement the proposed solution.
-
reporter Ok it's working fine :-) Thx a lot !
-
Fidel, Hay alguna forma de realizar lo siguiente:
IF (summary = {vacio} AND CustomField(A)!={vacio}) THEN summary := CustomField(A)
Muchísimas Gracias desde Argentina!
Marcos
-
repo owner Use "Set field as a function of other fields" with the following configuration:
Note that:
- %{00000} is field code for "Summary"
- %{12800} is field code for custom field A in my JIRA instance. Custom field's codes depends on each particular JIRA instance.
Once configured, "Create Issue" transition will look like this:
Saludos desde España,
Fidel
- Log in to comment
That functionality is currently implementable using post-function "Set a field as a function of other fields" using the following configuration:
For readability I copy here the 3 setting rules used:
[%{12302}="A"]X
[%{12302}="B" or %{12302}!="C"]Y
[true]W
Notice that:
Once configured, post-function will look like this: