How can I close an issue using V3 rest api? I need to update status(Resolved), resolution code and comments. Please help me with complete payload structure.
by "close" you mean trigger a transition which name is "close"?
If yes, you need to trigger a transition. Here is how: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post
"It's not working" tells us nothing of any use in debugging it. What are the error messages coming back from it? How did you amend "the same payload" to suit your workflow? What did you actually do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After doing some R&D it is working.
one more question:
when I need to close an issue/ticket. two things we need to do..
1) change the status to "Resolve" using below transitions api.
https://team-xxxxxxx.atlassian.net/rest/api/3/issue/IS-49/transitions
2) need to update Resolution Code & Add Worknotes/Comments.
for this I need to use generic update API.
Is is the process? that I need to call two different APIs? or is there any possibility to do both transactions with single API?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.