Forums

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

Rrquest Type JSM - Create issue

S
Contributor
December 10, 2021

Hi

 

How can we assign request type in create issue api...

 

In knowledge base its not shown or I couldn't spot it....

 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

 

Here's what I have tried but I keep getting bad request error

{"fields":{"summary":"Test","project":{"key":"SomeKey"},"issuetype":{"id":"9999"},"requestTypeId":{"id":"42"}}}

1 answer

0 votes
Robert Wen_Cprime_
Community Champion
December 10, 2021
S
Contributor
December 13, 2021

@Robert Wen_Cprime_  does this mean - When I'm creating issue, I cannot assign request type?

Robert Wen_Cprime_
Community Champion
December 13, 2021

The artifact flow in JSM is different.  A request type must be mapped to an issue and that the issue is created when the request is created.

S
Contributor
December 13, 2021

thanks, this is exactly what I am doing in my request to create an issue (if I understand correctly :)

- I am mapping issue type id ( this alone in the request JSON works fine)

When i add RequestTypeId it fails... with bad request.

Suggest an answer

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

Atlassian Community Events