how to get all the (required or non-required) fields of JIRA issue?

Andy Kuan July 29, 2015

I am using REST API to create issue. and I like to get all the fields of JIRA issue so I can map our defect tracking system fields to JIRA fields and create JIRA issues

In the Create Issue JSON object, how do I get all the required fields for the JIRA issue?

for example: string data = "{\"fields\":{\"project\":{\"key\":\"CQT\"},\"summary\":\"Sample issue\",\"description\":\"Creating an issue via REST API\",\"issuetype\":{\"name\":\"Bug\"}}}";

I can tell, project, summary, description, issuetype are the fields for Issue.

How do I get the rest of fields of Jira Issue?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Jobin Kuruvilla [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.
July 29, 2015

Use the createmeta API: https://docs.atlassian.com/jira/REST/latest/#d2e1079

This will give you all the fields, along with its metadata.

TAGS
AUG Leaders

Atlassian Community Events