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
@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
Hi, thanks for your kind response. Is there any other way to run groovy scripts than using SccriptRunner? Any free tool?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks a lot for guiding me. Have a good day
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.