i have both A and B projects in jira, when i move epic from one project to another project, i get notification where its moved using below script. but doesn't capture where it came from. Notification dont have source(A), but target(B) is appeared. i need script to capture from source/Where it came from.
Below script shows only B project information, Not A.
Email Subject: Issue Moved Notification: {{issue.key}}
Email body:
Hello,
The issue {{issue.key}} has been moved to project {{issue.project.name}} from another project.
Assigned Team :{{issue.team.Name}}
Please review the issue details here: {{issue.toUrl}}
Best regards,
Automation System
Hi @Ramesh Krishnan ,
You can get the value from {{changelog.project.fromString}} inside an automation rule to move the work item.
Create an automation rule for when work items are moved and an action to send an email. Use this as the body of your email:
Hello,
The issue {{issue.key}} has been moved
From Project: {{changelog.project.fromString}}
To Project: {{changelog.project.toString}}
Assigned Team: {{issue.team.name}}
Please review the issue details here:
{{issue.toUrl}}
Best regards,
Automation System
I just tried it myself and it worked as expected!
This is the email I received after moving a work item from 'CGN' to 'Carlos classic Project' space:
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.