Forums

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

API for parent

Vlim January 24, 2024

Previously, we could use the API /rest/agile/1.0/parent/search? to get all the "Epic" of a Jira instance. However, now that Jira has replaced "Epic" with "Parent", is there a corresponding API that we can use to get all the parents of an instance?

2 answers

0 votes
Manne Kjærby - ProProces
Atlassian Partner
January 24, 2024

Hi Vlim.

 

It looks like you are referring the parents configured in your issue hierarchy in your instance.

I'm not sure if the is an API, that I just haven't explored yet, but a alternative could be to use the search api.

Then you could reference all your parent issuetype in a JQL, something like: type in (Epic,ParentType1,ParentType2)

And then the api request would look something like:

/rest/api/2/search?jql=type%20in%20(Epic%2CParentType1%2CParentType2)

 

Let me know if i misunderstood your question :-)

Regards

Manne

0 votes
Manne Kjærby - ProProces
Atlassian Partner
January 24, 2024

Hi Vlim.

I guess you are referring the parents in the issue hierarchy configured in you instance.

The might be API that I haven't explored yet.

But could a alternative be to use the search api where you define which Issue types to get with jql. So you define all the issue types that is configured as parents in your instance.

The JQL could be like:

type in (Epic,ParentType1,ParentType2)

And with the jql put into the api call it would be something like:

rest/api/2/search?jql=type%20in%20(Epic%2CParentType1%2CParentType2)

 

doc: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-search/#api-rest-api-2-search-get

 

Let me know if i interpreted, your question wrong :-) 

Vlim February 1, 2024

Hi @Manne Kjærby - ProProces 
Thank you for your help.
JQL (Jira Query Language) cannot perform fuzzy searches.

It only supports precise searches by issue key and searches for words within the summary, which do not yield results consistent with the parent issue search functionality when creating issues on the Jira web interface.

Therefore, I am unsure how to proceed.

Thank you once again for your assistance.

Suggest an answer

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

Atlassian Community Events