Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Issue is missing required information or the lack of permission?

hafsa.kh91
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Aug 29, 2023

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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events