Hi All,
Could you please provide me issue type update rest web service and corresponding request payload for to update existing issutype.
You can find an answer here:
https://community.atlassian.com/t5/Answers-Developer-Questions/How-can-I-change-an-issuetype-on-an-existing-issue-via-the-REST/qaq-p/521589
Hi Alexey Matveev,
Boris Georgiev saying issue type probably can not be edited.Could you please tell me.Is possible or not.If possible post reference link .
Regards,
Nageswara.
Boris said, try to get info from editmetada resource and have a look, if it is possible.
Hi Alexey
I have requested below rest api and below payload:
rest/api/2/issue/10206/editmeta
My Requested payload is:
{"update":{"issuetype": [{"set": "Bug"}]}}
getting 405 method error please find my attached screen .If in case if i am wrong please help me on this.
Here is it. First I executed GET rest/api/2/issue/issuekey/editmeta. The result was like this:
"issuetype": { "required": true, "schema": { "type": "issuetype", "system": "issuetype" }, "name": "Issue Type", "operations": [],"allowedValues": [ { "self": "http://localhost:8080/jira/rest/api/2/issuetype/10100","id": "10100", "description": "A task that needs to be done.", "iconUrl": "http://localhost:8080/jira/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype","name": "Task", "subtask": false, "avatarId": 10318 }, { "self": "http://localhost:8080/jira/rest/api/2/issuetype/10001","id": "10001", "description": "Created by JIRA Software - do not edit or delete. Issue type for a user story.", "iconUrl": "http://localhost:8080/jira/images/icons/issuetypes/story.svg", "name": "Story", "subtask": false } ] }
Look at the allowedValues. It means that issuetype can be set either to Story or to Task. Then I executed PUT /rest/api/2/issue/issuekey with the following JSON:
{"fields":{"issuetype":{"id":"10001"}}}
The issue type field was changed to Story.
It looks like you're new here. Sign in or register to get started.