Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,033
Community Members
 
Community Events
165
Community Groups

Automation not matching rules for IF condition

Hi All, 

I have set up automation in one of my Jira projects to auto set the Assignee based on the returned value of a web service. 

For this project, there are 12 entities a user can be from, and I need to set the Assignee based on that value. 

For 11 of the 12, it works perfectly. For one, it doesnt match any of the "if" blocks

In this instance, the webservice correctly returns AAPMI2 (as per the log)
but it doesnt match the IF block checking that value. 

Automation Rule Success Fail Jira.png

 

I have tried copy/pasting the text from the Return value into the IF condition (no change) 
I have tried republishing the rule (no change) 

Any suggestions? 

Regards
Adrian

2 answers

1 accepted

0 votes
Answer accepted
John Funk Community Leader May 25, 2022

Hey Adrian,

Just to troubleshoot for now, maybe copy the rule and pull all of the other IFs out and test it with just that one condition and see what happens. 

Hi John, 

Sorry for the delay in getting back to you (ive been off sick). 

1. Pulling the "IF" out to its own rule did work successfully.
2. The "big" rule has now "magically" started working and matching that value. 

Nothing i did to the original one, just after setting its own rule up, the other automation just started working.

 

I appreciate all the responses

Like John Funk likes this

also, if I validate the webhook, it returns the expected value.

automation Rule Success Fail Jira2.png

Hi @Adrian Gunther 


Could you try to print a log with the webhook smart value that you are evaluating just before the if condition please?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

276 views 15 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you