Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for JIRA Fields

Preston Warden
Contributor
November 24, 2021

I am working to complete the following statement but am having a heck of a time completing it. Can you help?

 

Here is the first thing:

If {{issue.effort level}} = "Value" set {{issue.effort level value}} = X

then

If {{issue.impact level}} = "Value" set {{issue.impact level value}} = Y

then

If {{issue.occurrence level}} = "Value" set {{issue.occurrence level value}} = Z

then

Set {{issue.priority value}} = X * Y * Z

 

This is how I can think to get it out of my brain. I would prefer to get rid of the first 3 lines and delete the "level value" fields from my custom fields. How do you define a variable for X Y & Z instead of going through setting a secondary value field?

1 answer

0 votes
Fabian Lim
Community Champion
November 27, 2021

Hi @Preston Warden

If you are planning to use Jira Automation, you need to define the trigger first and then use the conditions and actions to perform the calculations. Link to the basics of jira automation: https://www.atlassian.com/software/jira/guides/expand-jira/automation 

Regards

Preston Warden
Contributor
November 29, 2021

Hi Fabian,

 

Yes I was using the trigger to be when the issue was created. I have been working through getting the Advanced JSON conditions to accept the statements above, that is what I am asking for help on. I looked at the link and it discusses the basics which is helpful, but was already known.

 

I need help with writing the JSON.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
4.5.3
TAGS
AUG Leaders

Atlassian Community Events