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,360,949
Community Members
 
Community Events
168
Community Groups

JIRA Service Desk automating Approvals

Scenario:

Request is entered by a customer that has authorization to also approve the request. They select themselves as the approver from the approvers drop down.

 

Question:

Is there a way to automatically Approve a request where the requestor and approver are the same person moving it through the workflow to the next step?

3 answers

2 accepted

1 vote
Answer accepted

You can place all those who have the ability to approve certain requests in a group and then set the automation to transition if they're a part of the group. 

Using built-in automation of JSD

 

WHEN: Issue Created

IF: ISSUE MATCHES: reporter in membersOf("Supervisor-Group") AND issuetype = "Account Activation"

THEN: AUTO-APPROVE: APPROVE

           TRANSITION ISSUE: Approval Transition

 

approve.png

Thanks everyone, there was a condition on my workflow blocking moving to my approved status..i removed that and seems to be working!

Our approvers are dynamically pulled from Insight. Presumably there is no current solution for this?

0 votes
Answer accepted
Andreas Rising Star Aug 22, 2018

I think in that case you could configure a second transition within that workflow that has the condition that it is only visible to users in a certain group. So if all the customers that are authorized to approve requests are in this group, then they can directly transition that issue to the next workflow step without having to select an approver.

If the request is created and automatically moves to awaiting approval transition...where do i add this condition and trigger?

Hi! We've used this solution for quite some time, but all of a sudden it stopped working and i cannot see why. Can someone just confirm this is still working for you?

I also tried to set 
IF reporter in (currentUser()) AND Approver in (currentUser())
But with the same result, it simply will not auto-approve.

EDIT: We have not made any changes to the group lately and have not updated Jira since it last worked

I think currentUser() during automation is something like Jira Automation user. Jira automation is not executed as a user who creates the ticket.

Suggest an answer

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

An unofficial way to monitor a JSM mail handler for errors

...eturns true if any content is returned for the webResponse.body.data.first s...

688 views 2 20
Read article

Atlassian Community Events