Hi All,
Could you please provide me issue type update rest web service and corresponding request payload for to update existing issutype.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Boris said, try to get info from editmetada resource and have a look, if it is possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey..
Thank you for your supporting .working as expected as for your information.
Thank you very much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not working for me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any problem with my code? -
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
payload = json.dumps({"fields": {"issuetype":{"id":"10328"}}})
response = requests.request(
"PUT",
url,
headers=headers,
auth=auth,
data=payload
)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.