Forums

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

How to obtain all t he issues by using a particular issuetype name

fcordero September 17, 2020

Guys,

I need help preparing a GET jql query . If you see here, I can obtain the issues, in this case I am filtering by the summary field. However I'd like to do something like this:

 

var jql=issuetype = \"AXY\" ...... If you see below I get issuetype -> name. I would like to the name to find ALL the issues under that issue type name. How should I write my jql  GET query?

Appreciate your help

jql.PNG

1 answer

1 accepted

0 votes
Answer accepted
Sramanth Pandeti
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 17, 2020

Hi @fcordero Welcome to the Atlassian Community!

You can try to obtain the issues from a issue type from the rest API below.

https://yourjiraname.atlassian.net/rest/api/3/search?jql=issuetype=story
fcordero September 18, 2020

Pardon my ignorance but what exactly "story" is? I thought I could use the name of the issueType and simply query with the API to retrieve all the issuetype with same name. Is this not correct?

Sramanth Pandeti
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 18, 2020

I just mentioned Story as an example. The above query will get all the issues from that particular issue type (E.g. Story). Are you trying to find the issue types using matching patterns ?

fcordero September 18, 2020

Thanks for your reply , I really appreciate it.  Let me explain what I am trying to achieve. My jql looks like this: 

 

jql=summary  ~ Any_Summary. When I run this call, I get a number of issues. Which is great. Instead I'd like to use the issuetype of the issue in order to retrieve the ones with same name. Does that makes sense?  I think you are correct, I am trying to use matching patterns I just don't really know how to. Thanks in advance!

jql2.PNG

fcordero September 18, 2020

I think I was able to figure it out, thanks to your help.

Suggest an answer

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

Atlassian Community Events