API to fetch parent or child link

Mayur Gaikwad_Tech PMO
Contributor
September 3, 2024

Hi,

Is there an API available through which we can fetch parent / child link details. 

My intention is to get insights on linked issues.

2 answers

0 votes
Oliver Siebenmarck _Polymetis Apps_
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.
September 3, 2024

Hi @Mayur Gaikwad_Tech PMO ,

As always, there's multiple ways to do this. My personal favorite is using Jira Expressions, as you can get a lot of information in a single call. 

For example, to get all subtasks you could just send this expression to the endpoint:

issue.subtasks

The fun starts when you combine Jira Expressions with JQL, for example to get the percentage of issues with subtasks within a given JQL query, you would send the JQL along with this expression:

(issues.filter(i => i.subtasks != []).length / issues.length) * 100

If you just want to dip your toe in and play around with Jira Expressions, we have a free app called Expression Tester that makes playing with expression easy from within the Jira UI. It's what I use most of the time. 

Anyway, hope that helps!

Best regards,
 Oliver from Polymetis Apps

 

0 votes
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 3, 2024

Suggest an answer

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

Atlassian Community Events