Forums

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

If possible using team name as a parameter to create ticket in JIRA via Rest API ??

Manickaraja July 12, 2018

I am struct with json parameter to pass team via rest API to create JIRA ticket. When i am passing Team name i am facing issue .

{"errorMessages":[],"errors":{"summary":"Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.","description":"Field 'description' cannot be set. It is not on the appropriate screen, or unknown.","Team":"Field 'Team' cannot be set. It is not on the appropriate screen, or unknown."}}

 

Can anyone help to resolve this as soon as possible

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 13, 2018

Could you let us know what specific REST endpoint you are trying to use here? 

AND

What is the specific REST json payload you are using at that endpoint?

 

I ask because with the given error message you are seeing, it tends to indicate that you are either doing an edit/update OR that the create screen in jira doesn't contain the fields that are required in order to create the issue.   When you create issues in Jira (outside REST), each project and issue type can have uniquely different screens.  These Screens dictate what specific fields appear as available to have values added at the time the issue is created.  If this team field does not appear on the screen in question, there is no way to set a value for that field when the issue is created.  Please see Defining a screen for more background information here.  When making a REST call to create an issue, you still have to abide by the limitations set forth in that particular screen.

If you're creating an issue in Jira via REST, I would expect that you are calling the api/2/issue endpoint with a POST call

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events