Forums

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

jql searching for issue type properties

Florian Bauer
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.
August 22, 2023

Hello Community,

I am looking for a JQL to get all issues with an issue type, which contains a certain issue-type-property.

Issue type properties can be set by rest api as described here.

Issue properties can be used within JQL and accessed like this: issue.property.property_name.

It looks like issue.type.property.property_name does not work.

is there a way to search for issue type properties?

Thanks,

Florian

3 answers

0 votes
Rachit Singhal
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.
August 22, 2023

Hi @Florian Bauer ,

 

As per my understanding of Jira and it's JQL, it doesn't seem to be possible to fetch the value of issuetype property. You might work with issue property in JQL in the context of searching for issues having some specific property. You can validate this by looking at the columns of issue navigator.

 

You can use the below REST API to get the keys of all the issue type property

https://yourinstancename.atlassian.net/rest/api/3/issuetype/{issueTypeId}/properties (use GET)

 

Then after you can use the below REST API with your required issue type property

https://yourinstancename.atlassian.net/rest/api/3/issuetype/{issueTypeId}/properties/{propertyKey} (use GET)

 

Please let me know if you need any additional help. 

 

Thanks.

0 votes
Bill Sheboy
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.
August 22, 2023

Hi @Florian Bauer 

I do not believe that is possible.

JQL is for searching for issues, and so that is always the context.  Entity properties set on an issue can be searched using JQL.

But entity properties set on other objects would need to be accessed using the REST API, a marketplace addon, or an app you write create.

Kind regards,
Bill

Florian Bauer
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.
August 25, 2023

as per documentation properties for issue, project and user (not issue type) can be jql-searchable but It turns out to be wrong: you only can search for issue properties.

 

Thank you for your help!

Florian

Like # people like this
0 votes
Sanjog Sigdel
Community Champion
August 22, 2023

Hello @Florian Bauer 

In typical JQL query we can use these two functions to retrieve hierarchy level issuetypes.

StandardIssueTypes() and SubtaskIssueTypes

JQL:  issuetype in standardIssueTypes()

JQL: issuetype in subTaskIssueTypes()

I don't have any hands on experience with the REST API but I would retrieve these two levels of issue types using above query.

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