Forums

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

Retrieve custom fields of subtasks

Basak Kurt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 15, 2024

Hello there,

I am currently using the rest/api/2/search endpoint to retrieve issues. While I've successfully obtained certain details of subtasks such as summary, status, and issue type, I'm now seeking a method to fetch all fields, including custom ones, for the subtasks. How can I achieve this?

1 answer

0 votes
Nikola Perisic
Community Champion
January 15, 2024

Hello @Basak Kurt ,

Welcome to the community!

For fetching the issue fields you can use: /rest/api/2/field

For fetching the custom fields you can use: /rest/api/2/field/{fieldId}/context - where the fieldID is required in your path parameter.

Hope this helps.

BR,

Nikola

Suggest an answer

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

Atlassian Community Events