Forums

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

How to automate a task After a request has been approved.

Bassel_Kharwat
Contributor
November 25, 2024

Hello. Appreciate all the incoming help!

 

I am creating a rule in JSM Automation for our approval workflow. I would like to automate a comment that a request has been approved after it has been approved, however in the automation tool I'm not seeing an option to specify that a request has been approved for an "If statement". The second "If" in the second photo being my wall.

 

Thanks!

 

11.25.1.png11.25.2.png

2 answers

1 accepted

2 votes
Answer accepted
Jannick Bettighofer
Contributor
November 26, 2024

Hello @Bassel_Kharwat 

You need a second automation with the trigger Approval Completed. There you can then add a query with the JQL condition approvals = approved(). Then the action that the comment should be created

Trigger: Approval Completed
JQL Condition: approvals = approved()
Action: Add comment

Everything in one automation makes no sense as the ticket cannot be created and approved at the same time. Your first automation only ever starts when the issue is created. That's why you need a second automation that is triggered when the approval is finished.

Best regards
Jannick

0 votes
Aaron Pavez _ServiceRocket_
Community Champion
November 25, 2024
Bassel_Kharwat
Contributor
November 25, 2024

Hi @Aaron Pavez _ServiceRocket_ , I have not. I have been looking for an Approval Completed action as an IF statement, rather than a new rule. Or can I create a second rule predicated on a first rule?

 

Aaron Pavez _ServiceRocket_
Community Champion
November 25, 2024

Hi @Bassel_Kharwat 

Seems there isnt one. Only a new rule will have that When: Approval completed.

You could create a new field called approval and add something to it on the current automation.

Something like: custom field approval with values yes/no-> edit with the automation and set to YES and then add that to the IF statement.

Regards

Aaron

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events