Forums

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

POST request on button press / ScriptRunner

Smacktur
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!
June 26, 2024

Hey, everybody!

I have created a custom button in my project (let's say named "Button 1") via ScriptRunner.

What I want:

If the user clicks on this button (in the task), send a POST request to the webhook I specified. It is also important that the payload contains the data of the task.

How to do it through ScriptRunner?

 

Thanks!

1 answer

0 votes
Tansu Akdeniz
Community Champion
June 30, 2024

Hi @Smacktur 

Welcome to the community.

You can either get issue data via script and send post request. Please take a look at examples codes.

Or if you can use Jira Automation from Project Settings -> Automation and create a new rule to send web request.

Issue data (Automation format) payload for Send Web Request

Suggest an answer

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

Atlassian Community Events