How to get all fields set for an Issue Type

Joey Ly
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!
December 9, 2024

I am trying to integrate Jira with Tray.io into my application.

I have an Issue Type with the fields Summary, Parent, and Reporter set and I see them within Jira.

However, on API call to GET /rest/api/2/issue/createmeta/:projectId/issuetype/:issueTypeId, they are not returned. On issue creation, Summary be set even though it's not defined in the aforementioned API response.

1 answer

0 votes
Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2025

Hi @Joey Ly ,

In any jira ticket "Summary" is a mandatory field, so you'll have to pass that parameter to the Create Issue API.

I haven't used the tray.io integration, but do you need to configure an API to set it up? Can you elaborate on what error you get during the configuration?

Joey Ly
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 6, 2025

There are no explicit errors. tray.io is simply our middleman to hit the Jira API and is restricted to Jira's V2 API.

 

I understand that the Create Issue API requires Summary, but I expect the GET for the Issue fields (GET /rest/api/2/issue/createmeta/:projectId/issuetype/:issueTypeId) to return the the mandatory fields in its response. Our main concern is the Reporter field as it seems we cannot set it in the Create Issue API if it's not returned in Issue fields API as well. We just happen to see this phenomenon with Summary and Parent.


Suggest an answer

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

Atlassian Community Events