Forums

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

make a rest API call when a question is answered

Jamshaid
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 Leaders.
September 20, 2020 edited

I want to make a Rest API call to an API when a subtask is completed or when a question is answered and want to send a few items in the API call. How do I do that? I don't find anything regarding this on this page and this. I want to use a groovy script for this. any reference or guide for this? Thanks

1 answer

1 accepted

1 vote
Answer accepted
DPKJ
Community Champion
September 21, 2020

@Jamshaid Welcome to the Atlassian Community.

This can be done using workflow post functions for making rest call using groovy you will need external plugin like ScriptRunner.

An example where ScriptRunner call Slack's rest api as a post functions - https://scriptrunner-docs.connect.adaptavist.com/jiracloud/post-functions.html#_post_to_slack

Details about Post Functions - https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html#Advancedworkflowconfiguration-postfunctions

Jamshaid
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 Leaders.
September 21, 2020

Hi, thanks for your kind response. Is there any other way to run groovy scripts than using SccriptRunner?  Any free tool?

DPKJ
Community Champion
September 21, 2020

No free tools for this. You can write custom plugin, but in that route also groovy won't come.

Jamshaid
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 Leaders.
September 21, 2020

thanks a lot for guiding me. Have a good day

Jamshaid
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 Leaders.
September 21, 2020

One more thing, where do I get started for writing that plugin, and which language will that support? just curious to know. Maybe we'll buy the plugin but still wanna know about it. Thanks again

DPKJ
Community Champion
September 21, 2020

For cloud you can write plugin in any language, but for Node.js (Express.js) and Java (Spring Boot) Atlassian provide connect templates to make life easy.

Like • Jamshaid likes this
Jamshaid
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 Leaders.
September 21, 2020

thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events