Using Custom JSON Body if a Workflow Transition triggers a Webhook Call

Atlassianist August 15, 2023

Hallo

we have created a Webhook in Jira Service Management:

webhook.png

This webhook should be triggered from a Workflow Transition if a request has been closed. 

This JSON Body has to be sent to the Webhook URL:

{

"incNumber":"REQUESTID",
"state""6",
"close_code""Closed/Resolved By Caller",
"close_note""Test Resolve"
}
Thru the REST Call the Request will be closed in the other ticketsystem ...
If we test it in "Postman", it works ...
Is there any option in Jira Service Management (Data center) to implement this REST workflow with custom JSON Body?
Thank you for your support. 
Best regards
AI
EDIT:

 

As I see this can only be solved with Web Request from an automation rule …

In our use case "incNumber" should take the value of a custom field “customfield_10303”

How can I use dynamic variables in JSON Bodies?

Please confirm!

 

1 answer

1 accepted

0 votes
Answer accepted
Atlassianist August 16, 2023

The solution was:

{

"incNumber":"{{issue.customfield_10303}}",
"state""6",
"close_code""Closed/Resolved By Caller",
"close_note""Test Resolve"
}

Regards

AI

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events