Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bulk resolution using API

Alexandre Sabourin April 8, 2025

So I am testing with postman my data sent to the API before I transfer it in my plugin. My goal is to do a Bulk transition to "done" with the resolution "Fixed". Right now the API seems to support only changing transitions.. If I specify the "Done" transition , the resolution will remains at "Unresolved" . My UI is all set to specify the resolution but there is no way to send a resolution in the body of the transition endpoint?

I am using this: 

/rest/api/3/bulk/issues/transition

Body example:

{
    "bulkTransitionInputs": [
        {
            "selectedIssueIdsOrKeys": [
                "TOT-76991",
                "TOT-76656"
            ],
            "transitionId": "11"
        }
    ]
}

1 answer

0 votes
Mohamed Benziane
Community Champion
April 8, 2025

Hi,

can you try

"transition": { "id": "11" }

instead of

"transition":"11"

Alexandre Sabourin April 8, 2025

Like I mentionned,  the transition works. It's the resolution that doesn't. There is no way to specify a resolution.

If I simply send the transition Id "11" , the resolution will remain at unresolved.

Mohamed Benziane
Community Champion
April 8, 2025

Oups, i forgot this part in my previous message

{ "transition": { "id": "11" }, "fields": { "resolution": { "name": "Done" } } }

But i think that you will need to have a transition screen to be able to add the resolution with the API

Alexandre Sabourin April 9, 2025

"transition": { "id": "11" doesn't work but this body below does "work". The transition is working but not the resolution.
What do you mean by adding a screen? I'm gessing you are not talking about UI here.


{
    "bulkTransitionInputs": [
        {
            "selectedIssueIdsOrKeys": [
                "TOT-76991",
                "TOT-76656"
            ],
            "transitionId": "131",
             "fields": {
                "resolution": {
                    "name": "Done"
                    }
             }
        }
    ]
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events