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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

OpsGenie and JSD Integration - Unable to set Incident to Completed (Done)

Hi Team,

We are on Jira v7.13.13 and JIRA Service Desk Application v3.16.13.

Used below document to enable OpsGenie and JSD integration.

https://docs.opsgenie.com/docs/jiraservicedesk-integration

I could get it authenticated from OpsG to JSD, could create Alerts from OpsG to JSD as Incidents, set Priority as well... so-far so good!

But, when I Close an Alert in OpsG, it calls the 'resolveIssue' action on python code as well, but stuck at below error:

[resolveIssue] Could not execute at Jira Service Desk; response: b'{"errorMessages":[],"errors":{"resolution":"Field \'resolution\' cannot be set. It is not on the appropriate screen, or unknown."}}' status code: 400

Here's the resolveIssue code:

elif mapped_action == "resolveIssue":
result_url += "/" + str(issue_key) + "/transitions"
content_params = {
"transition": {
"id": get_transition_id(headers, result_url, "Completed", token)
},
"fields": {
"resolution": {
"name": "Done"
}
}
}

Not sure if this is relevant, I see don't get to see "resolution" field under fields of transition to post when i run:

https://jira.resideo.com/rest/api/2/issue/<issueId>/transitions?expand=transitions.fields

There are two challenges here, it either doesn't execute the code or when it executes, i get above error.

Please advise what am I missing? Appreciate your assistance in advance.

 

Tnx, Dev

3 answers

1 accepted

Issue resolved!

Hi All,

Has anyone used Jira REST API to mark incidents with status as 'Resolved/Completed/Closed' and Resolution as 'Done'.
Please review my issue above and provide your expert advise.

Tnx, Dev

Hello Dev,
I have the same problem at the moment with:

"Field \'resolution\' cannot be set. It is not on the appropriate screen, or unknown."

Were you able to resolve this issue meanwhile? If so, how you managed? 

Hi pavol_cvincek01,

Just use below code,

POST URL: https://hostname/rest/api/2/issue/PROJ-XXX/transitions

PAYLOAD:

{

"transition": {

"id": "XX" //use respective transition ID, that can be used to transition to any other status not just closing (resolution to Done)

}

}

 

Thanks,

Dev

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

163 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you