Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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:

automation-conditions-8.png

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 https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/ 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": "https://are-media.atlassian.net/rest/servicedeskapi/request/43862/approval/1"
        }
      }
    ],

Try an advanced compare condition like:

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

contains

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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

354 views 9 7
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