Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I add alternatives to the User dropdown list?

I want to create an automation with a user condition. See below:


I want the condition to check if Reporter = Approver. I am, however, not sure how to add alternatives to the drop down list. The dropdown list seems to be a mix between standard values and manually added value, but I tried to create a value and it does not show up (It is a People-Field) 

This is how the dropdown look  


Screenshot 2021-06-11 at 09.34.46.png

I do not need a manually created value if I can access the "official" Approvers  field but none of the alternatives in the list seemed to work.  


Anyone have an idea what the problem might be here?

1 answer

If an issue is pending approval, then the special "Approvals" field tells you who can approve a request.

If you retrieve an issue via the REST API, as suggested by the Approvals field looks like this:

 "customfield_10100": [
        "id": "1",
        "name": "Waiting for approval",
        "finalDecision": "pending",
        "canAnswerApproval": false,
        "approvers": ["approver":jiraUser,"approvalDecision":"pending"],
        "createdDate": {
          "iso8601": "2021-06-07T12:41:16+1000",
          "jira": "2021-06-06T21:41:16.299-0500",
          "friendly": "Monday 12:41 PM",
          "epochMillis": 1623033676299
        "_links": {
          "self": ""

Try an advanced compare condition like:

First value: {{#issue.Approvals}}{{if(equals(finalDecision,"pending"),approvers)}}{{/}}


Second value: {{issue.reporter}}

Hi @Alex van Vucht (GLiNTECH) 

Thank you for the response.

I got a this error when I tried to publish the rule 

Error parsing template: Failed to close 'issue.Approvals' tag

I removed the # and then I was able to publish it, but I got this error message when I tested the rule 

Action details:

Advanced compare condition

Error rendering smart-values when executing this rule:Failed to get value for if(equals(finalDecision,"pending"),approvers){{/

@Daniel_AderstegThis is a tricky expression and I made a syntax error in not closing the braces on the if statement. I've corrected the statement above, and made bold where I did the error. Spend enough time staring at Smart Values and your eyes go a little cross-eyed, but it's better than the alternative!

Suggest an answer

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

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

762 views 5 13
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