Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,552,425
Community Members
 
Community Events
184
Community Groups

Is there any documentation about the object "issue.Approvers" for Automation for Jira?

I'm trying to pull information from the object {{issue.Approvers}} for an advanced branch in Automation for Jira, however, I cannot find the attributes I'm looking for.

First, I thought about using Postman and use the API method "Get issue" to validate the attribues for {{issue.Approvers}}, however, it seems that they are different or, perhaps, in a different indentation, hence, I cannot find the one I'm looking for (approverDecision).

Also, I've tried to "print" the response in a comment just as {{issue.Approvers}}, however, it only "prints" an array of Atlassian ID's (that belong to the current Approvers).

 

It's quite confusing for us to operate like this so, do you have any idea if there is a documentation or, perhaps, you may know about a method we can use to "explore" the contents of that object?

1 answer

1 vote
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 23, 2023

@Mau Jimenez -

Take a look at the following reference link on issue smart values and look into the "approvals" section - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Hope this gives you a good place for you use use smart values in your automation rule setup.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Hello Joseph!

 

I do appreciate the documentation, however, it does not resolves my inquiry sience, unfortunately, it does not provide information about the object {{issue.Approvers}}.

You see, If I call that object and print it into a comment or log line, I only obtain an array of Atlassian IDs. If I use the attribute "emailAddress" as {{issue.Approvers.emailAddress}}, I obtain an array of email addresses as expected. But I have no idea what other attributes are held in {{issue.Approvers}} since there is no documentation I could find (such as an API documentation for example) which details what can I call from that object.

Long story short, we're trying to create and advance branch which can iterate over every single approver and provide:

- Approver Decision

- Approver Email Address

And then perform a certain action for every single approver who hasn't replied yet.

 

Currently, we've succeded to perform such operation but without information about the current Approver Decision since we're not able to pull that information from {{issue.Approvers}} just as we could through the "Get Issue" method over the Jira Cloud API.

Suggest an answer

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

Atlassian Community Events