Forums

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

Trigger automation using JMWE

Ram Sai June 24, 2025

Hello.

as is state. We are currently using automation to send webhook with the below payload to an external application when the status changes and if the assignee is a "Jack" and task type is "story and bug" This payload mainly contains information about the issue key and status 

{
"actionType": "field",
"fieldId": "status",
"issue": "{{issue}}",
"content": { "prev": "{{fieldChange.fromString}}", "new": "{{fieldChange.toString}}", "fieldId": "{{fieldChange.fieldId}}", "fieldType": "{{fieldChange.fieldType}}", "prevObj" : {{#if(equals(fieldChange.from, null))}}null{{/}}{{fieldChange.from}}, "newObj": {{#if(equals(fieldChange.to, null))}}null{{/}}{{fieldChange.to}}}
}

Problem with the current setup is this automation runs whenever the status changes within the project. and we are trying to avoid triggering the automation when not required. so we are trying to user JMWE post functions to trigger the automation using the webhook and then automation will send the payload to the other application.

We are using event based actions > shared action > trigger automation > automation sends webhook with the above payload.

when we were using the direct automation trigger automation has access to change log and was able to send the payload to the other application. but now that we are using JMWE to trigger the automation, automation don't have access to that payload information and we are stuck with this unable to send the payload to the other application.

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Oleksii Melnyk
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.
June 24, 2025

Hi! Let's try to use this solution:

{{issue| fieldHistory( "status" )| filter({to_string:"In Progress"}) | last| field("date")}} 

 

Described here: https://community.atlassian.com/forums/Jira-questions/JMWE-get-status-transition-date/qaq-p/2741759

0 votes
Thorsten Letschert _Decadis AG_
Atlassian Partner
June 24, 2025

Hey @Ram Sai ,

This sounds like it should also be doable with a tweaked automation rule.

  • Have you tried limiting the execution to a specific transition via the trigger's 'From status' and 'To status' fields?
  • Have you tried adding additional conditions like 'Issue fields condition' or 'JQL condition'?

Regards,
Thorsten

DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events