Forums

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

How to get all issues against custom field key with values

Jatin Kompelli January 30, 2023

Hello,

 

I am trying to get all the issues which are linked to the custom field key along with their values:

Eg: If customFieldKey is custom_field_10000 and it is used for multiple issues with issue id as 1003,1004 then i want to get those 2 issues with the value assigned against the custom field.

1003-ABC

1004- PQR

 

Is there any API which i can use and pass custom field key to it and it returns back the associated issues with values.

Regards,

Jatin

1 answer

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
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.
January 30, 2023

What type of field is custom_field_10000?

How you search for custom field values is dependent on the type of data in them.

Jatin Kompelli January 30, 2023

Well it can be a date field or a text field, I want to query against multiple custom fields.

So for example 1 of the custom field we have is "UAT-Commitment-Date" , now this field might have value against 100 jira issues out of 200. I need to get list of all those 100 issues with their id and the value stored for these custom field dates.

 

Regards,

Jatin

Nic Brough -Adaptavist-
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.
January 30, 2023

The easiest way to do this is to run a search over the REST API (I'm assuming you are doing this from another system, not inside Jira.  If it's inside Jira, then I'll need you to explain what "get" means - what are you doing that needs a set of values)

Start at https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/

Jatin Kompelli January 30, 2023

Yes, I found the search API helpful, it will server the purpose. 

Thanks.

 

Regards,

Jatin

Suggest an answer

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

Atlassian Community Events