The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Invoke/Trigger REST API with task metadata when status of task moves from X to Y

DURGA PRASAD PATLOLLA
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!
November 26, 2021

Is it possible to trigger a REST API with all the metadata of task on a event ?

 

Example : Lets lets we consume various info (fields) while a task creation like environment, duration, Type of operation, etc....And my task will have various states like To Do -> Approved -> Done.

 

So on moving task from ToDo -> Approved i need to invoke a rest API which post all the metadata of task, and my rest API will check the remaining work. 

On receiving response 200 from rest API my task status must be moved to Done automatically

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ignacio Pulgar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 28, 2021

Hi @DURGA PRASAD PATLOLLA ,

Yes, that's possible.

This awesome article explains how to do so.

Of course, you should change the Automation Rule trigger to Issue Transitioned:

automation.png

In your case, substitute Done with Approved.

Hope it helps.