Expand my Community achievements bar.

SOLVED

Fusion module to Update Jira Action

Avatar

Level 3

I'm trying to use an Jira Cloud update record module to update a Jira Issues action.  However I don't see an option within the module to update the action to "Done".  Do I need to use a Jira
custom API call instead?  

Thanks in advance11

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @FrankatMSC

 

Thank you for your question! You're correct; the standard Jira Cloud → Update a Record module in Fusion is typically used for updating basic fields on Jira Issues, like summary, description, or custom fields. However, changing the status of an issue (such as moving an action to "Done") usually requires transitioning the issue through a Jira workflow, not just updating a field (depending on your specific situation).

 

Because of that, you do need to use a custom API call to perform a transition. In Jira's REST API, transitioning an issue involves making a request to:

 

POST /rest/api/3/issue/{issueIdOrKey}/transitions

 

You would need to specify the transition ID for the "Done" status. To get the correct transition ID, you can first call:

 

GET /rest/api/3/issue/{issueIdOrKey}/transitions

 

This will return a list of available transitions, and from there you can find the ID that corresponds to "Done."

 

In Fusion, you can do this by:

1. Establish a Jira Cloud connection → Add a Make an API Call module

2. Run a request to POST /issue/{issueIdOrKey}/transitions

 

In the request body, providing the transition ID like this:

 

{
"transition": {
"id": "31" // Example ID for "Done" - yours may differ
}
}

 

Here is some documentation on this:

https://docs.atlassian.com/software/jira/docs/api/REST/7.11.0/#api/2/issue-doTransition

 

- Monica 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

Hi @FrankatMSC

 

Thank you for your question! You're correct; the standard Jira Cloud → Update a Record module in Fusion is typically used for updating basic fields on Jira Issues, like summary, description, or custom fields. However, changing the status of an issue (such as moving an action to "Done") usually requires transitioning the issue through a Jira workflow, not just updating a field (depending on your specific situation).

 

Because of that, you do need to use a custom API call to perform a transition. In Jira's REST API, transitioning an issue involves making a request to:

 

POST /rest/api/3/issue/{issueIdOrKey}/transitions

 

You would need to specify the transition ID for the "Done" status. To get the correct transition ID, you can first call:

 

GET /rest/api/3/issue/{issueIdOrKey}/transitions

 

This will return a list of available transitions, and from there you can find the ID that corresponds to "Done."

 

In Fusion, you can do this by:

1. Establish a Jira Cloud connection → Add a Make an API Call module

2. Run a request to POST /issue/{issueIdOrKey}/transitions

 

In the request body, providing the transition ID like this:

 

{
"transition": {
"id": "31" // Example ID for "Done" - yours may differ
}
}

 

Here is some documentation on this:

https://docs.atlassian.com/software/jira/docs/api/REST/7.11.0/#api/2/issue-doTransition

 

- Monica 

Avatar

Level 3

Thank you Monica for this incredibly concise answer!!