Hello,
I was trying to create an automation however I reached the maximum number of components so the automation did not work. I need help to convert this automation to JSON/JQL(?) so I can use it.
I have two different fields called "priority" and "severity" according to these two fields the automation should edit the "impact" field.
This is the rule in my mind:
IF priority="Lowest" AND Severity="Minor" THEN edit Impact="Lowest"
ELSE priority="Lowest" AND Severity="Major" THEN edit Impact="Low"
ELSE priority="Lowest" AND Severity="Critical" THEN edit Impact="Medium"
ELSE priority="Lowest" AND Severity="Blocker" THEN edit Impact="High"
ELSE priority="Low" AND Severity="Minor" THEN edit Impact="Lowest"
ELSE priority="Low" AND Severity="Major" THEN edit Impact="Low"
ELSE priority="Low" AND Severity="Critical" THEN edit Impact="Medium"
ELSE priority="Low" AND Severity="Blocker" THEN edit Impact="High"
ELSE priority="Medium" AND Severity="Minor" THEN edit Impact="Low"
ELSE priority="Medium" AND Severity="Major" THEN edit Impact="Medium"
ELSE priority="Medium" AND Severity= “Critical" THEN edit Impact="High"
ELSE priority="Medium" AND Severity="Blocker" THEN edit Impact="Critical"
ELSE priority="High" AND Severity="Minor" THEN edit Impact="Low"
ELSE priority=" High" AND Severity="Major" THEN edit Impact="Medium"
ELSE priority=" High" AND Severity="Critical" THEN edit Impact="High"
ELSE priority=" High" AND Severity="Blocker" THEN edit Impact="Critical"
ELSE priority="Highest" AND Severity="Minor" THEN edit Impact="Medium"
ELSE priority=" Highest" AND Severity="Major" THEN edit Impact="High"
ELSE priority=" Highest" AND Severity="Critical" THEN edit Impact="Critical"
ELSE priority=" Highest" AND Severity="Blocker" THEN edit Impact="Critical"
How can I make this work by adding it here?:
I would be very appreciated if you could help me, thanks a lot!
Hi @Özge Özgenç
A variation of the other suggestions is to use a Lookup Table action for this need:
With that, you could create keys that represent the concatenated values of the priority and severity names (as Mark suggests) and then the value would be the impact to use.
This approach would then require 2 rule components / steps, regardless of how many pairs are needed. Extra steps could be added as a precaution in the event the priority and severity fields are not set.
Kind regards,
Bill
Hi @Özge Özgenç - You could make this a series of no more than 5 If/Else clauses using smart value conditions with the "At least one condition matches" selection. For example your Lowest/Low impact if/else blocks would look like this:
{{issue.priority.name}}{{issue.severity}}
Equals
LowestMinor
{{issue.priority.name}}{{issue.severity}}
Equals
LowMinor
{{issue.priority.name}}{{issue.severity}}
Equals
LowestMajor
{{issue.priority.name}}{{issue.severity}}
Equals
LowMajor
{{issue.priority.name}}{{issue.severity}}
Equals
MediumMinor
{{issue.priority.name}}{{issue.severity}}
Equals
HighMinor
Just repeat for the other 3 impact options
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Özge Özgenç
You can do an If/Else instead of just If condition and you can keep adding Else blocks as needed.
Now for the checks, I will give you first block, you can add further conditions:
If Severity contains Minor .....&
{{#if(or(issue.Priority.name.contains("Lowest"), issue.Priority.name.contains("Low")))}}true{{/}}
equals
true
Then Edit Fields -> Impact = Lowest
See screenshot of first If block in If/Else:
So please refer to above screen & syntax, take a look at your rules and add further "Else" conditions and customize rule as needed.
Example: Severity contains Minor & Priority Contains Medium / High - Impact = Low
This set up should let you complete your requirement without exhausting components.
Please try incrementally so you keep checking as you go along.
Let us know if issues. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.