Hey,
I would like to increment a certain field with the smart value {{issue.customfield_15600}}, but when another field with a smart value {{issue.customfield_16800}} increases by +2.
I tried to use those in the Edit field action of the certain field but it doesn't work or it counts wrongly.
{{#=}}{{issue.customfield_16800}}+2 {{issue.customfield_15600}}+1{{/}}
{{#if((issue.customfield_16800.plus(2),issue.customfield_15600))}}
+1{{/}}
Thanks for helping out!
Hi @Iga G My name is Habib, and I will do my best to help you please see below to your question.
7. In the "New Value" field, enter the following expression:
{{#if(issue.customfield_16800)}}{{#math}}{{issue.customfield_16800}} + 2{{/math}}{{/if}}{{#if(issue.customfield_15600)}}{{#math}}{{issue.customfield_15600}} + 1{{/math}}{{/if}}
This expression checks if the "issue.customfield_16800" field has a value, and if so, it adds 2 to that value. It also checks if the "issue.customfield_15600" field has a value, and if so, it adds 1 to that value.
I hope this helps.
Thank you
Habib
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.