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.
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
Hey @Ram Sai ,
This sounds like it should also be doable with a tweaked automation rule.
Regards,
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.