Error message: Cant move {issue}, you might not have permission, or the issue is missing required information. If you keep having this issue, contact your jira administrator. Error 400.
Here is the URL i am using:
https://{company}.atlassian.net/rest/api/2/issue/{issuekey}/transitions
and i want to change the status and comment on the issue:
{
"update": {
"comment": [
{
"add": {
"body": "Bug has been fixed."
}
}]
},
"transition": {
"id": "5"
}
}
I have written it exactly like this, but it shows me the above error. I have gotten a personal token that works when I try with Get issue in Jira, but not with Post. Is there some missing information here that I am missing? I am using windev so the rest of the full code, if relevant is below:
statusChange is string = [
{
"update": {
"comment": [
{
"add": {
"body": "Bug has been fixed."
}
}]
},
"transition": {
"id": "5"
}
}
]
QrySearch is restRequest
QryResponse is restResponse
QrySearch.URL = "https://{company}.atlassian.net/rest/api/2/issue/{issuekey}/transitions"
QrySearch.Method = httpPost
QrySearch.ContentType = "application/json"
QrySearch.Content = statusChange
QrySearch.User = {email address}
QrySearch.Password = {personal token key}
QryResponse = RESTSend(QrySearch)
IF QryResponse.StatusCode = "204" THEN
Info("Updated")
ELSE
Info("Fail", QryResponse.Content, QryResponse.StatusCode)
END
Please tell me what I am doing wrong?