Hi Team, Good Day!!.
In Anguar I'm trying to update Jira sub task status update using transitions - api/2/issue/JJIRAidorKEY/transitions with POST request. but the response gives XSRF checked failed. statusCode: 403.
Im able to fetch Jira Data using GET request.. this is first time Im using POSt request to update "name":"In Progress" to "Done.
{
"update": {
"subtasks": [
{
"fields": {
"status":{
"statusCategory":{
"name":"In Progress"
}
}
}
}
},
"transition": {
"id": "31"
}
}
Pls suggest if we you know any other approach in angular.
Your help is appreciated!!
Not sure whether it's related, but I do know that for POST and PUT request you need to add this header:
{'Content-Type': 'application/json'}
This is in addition to the header needed in all Jira REST-API requests:
{'Accept': 'application/json'}
You can't just update the name. You must execute the transition. Even not the status category. You need to mention the new status I think. But I don't have the documentation in mind.
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.