Forums

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

Automation condition IF issue matches Approvers = currentUser()

Justin Warwick
Contributor
October 25, 2018

Using Service Desk 3.15.1 on Server 7.12.1, I already have a couple of working automation rules that are triggered WHEN Comment added, and also have conditions of "IF Issue matches", and then I have some approving person in a custom field (that came out-of-the-box in SD): CAB in one case, and Change Managers in the other. I would like to do the same for the field "Approvers", but curiously, it is not present in the list of fields for the Issue matches condition. If I enter Advanced mode for that condition and write a JQL statement to "force" it, I see this error:

jql_approvers_no_go.PNG

(transcription:   Field: 'Approvers' is not searchable, it is only sortable")

So it would seem that Approvers is a little bit special or something. Is there a way to evaluate its contents for a match with the currentUser() function in a JQL statement? Or will I have to hide Approvers and replicate all its functionality on my own in a custom field?

As an aside, though I don't think it matters here, we specifically are looking to process these responses from "Customer" users, not internal, licensed agents. The idea is that management and up type of employees can issue a statement of approval in a reply email, no logon, no webpage visits.

2 answers

0 votes
Tracy Walton
Contributor
November 21, 2018

I'm also looking for this kind of solution, and struggling to find a quick fix. 

Looks like JJ, who reported this issue, is looking for something similar. https://jira.atlassian.com/browse/JSDSERVER-5376 

Tracy Walton
Contributor
November 21, 2018

I've created this issue with Atlassian that is more specific to providing a way for people to approve requests via email without having to login, please take a look and vote: https://jira.atlassian.com/browse/JSDSERVER-6127

Like # people like this
0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2018

Hello,

Try the following line in your JQL:

Approvals = approver("username")
Justin Warwick
Contributor
October 26, 2018

This is interesting, your suggestion moves me in the right direction I am certain, but something still isn't correct. I found the two approval functions' details here:

https://confluence.atlassian.com/jiracoreserver/advanced-searching-functions-reference-939937722.html#Advancedsearching-functionsreference-approverapprover()

I tried:

approval = approver(currentUser())
approver(currentUser())
Approvals = approver(currentUser())

But none of those were recognized as valid, I could not even confirm and save the definition. This is in the IF condition block of an automation rule,  and I am executing the rule as triggering user, by the way. 

Like Tracy Walton likes this
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2018

You can not use the currentUser() with the approver function.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events