Forums

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

Automation rule to check if the request is approved

Florin
Contributor
April 26, 2023

Hello everyone. I am very new to Jira, and I have a question.

A bit of context. New user comes in -> new request for access -> approved/declined. Now if in the meantime the user form needs to be modified I have a rule to create a new subtask on the request. What I want is for the subtask to be created only if the original request is approved, so I need to put in a condition to create the subtask only if the request is approved beforehand.

jira.PNG

So where the plus is want to put the condition but I am a bit lost. Any help is much appreciated.

 

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
April 26, 2023

Hi Florin - Welcome to the Atlassian Community!

What happens to the issue when it is marked Approved? Does it go to a new/different Status? If so, then your rule should simply check to see if the issue is in that Status. 

Florin
Contributor
April 26, 2023

So when it's in "Waiting for user approval", and then approved, it goes to "Waiting for Support".
So basically you are saying to create the subtask only if it's in the new status after approval.

I get it now. Simple solution. 

Thanks, John

Like John Funk likes this
John Funk
Community Champion
April 26, 2023

Yep - give that a try and see if it does what you want. 

Like Florin likes this
Florin
Contributor
April 26, 2023

Hi John, I put in the new condition. So after approval, the status is set to "Waiting for support", but now it does not create the subtask when the status changes after approval. Don't understand exactly what I am doing wrong.

jira.PNG

John Funk
Community Champion
April 27, 2023

Can you include a screenshot of the audit log when you run it? That will tell us where it’s failing .

Florin
Contributor
April 27, 2023

John, I made it work. It was an issue with the trigger. So I changed it so that only when approval is completed and the ticket has the required form, then to create a subtask. 
Thanks a lot for your time and help.

jira.PNG

Like John Funk likes this
John Funk
Community Champion
April 27, 2023

Great! Glad you got it to work.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events