Forums

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

How do I get the previous value of a project that was moved into a different project

Justin Gong December 7, 2023

I am creating an automated email that displays both the project that the issue was originally under and to which it was moved to ({{issue.project.name}}.

I need help finding the name of the original project. I've tried many versions but none of them seem to work. I may be misunderstanding how to use the {{fieldchange}} smart value.

The below is the what I could come up with 

{{issue.project.name.fieldChange.fromString}} 

 

I saw here https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-to-get-the-previous-value-of-the-field-in-jira-email/qaq-p/1897271 and tried using the  following: {{changelog.project.fromString}}. Still no luck.

 

Any help would be greatly appreciated. Thanks!

1 answer

0 votes
Bill Sheboy
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.
December 7, 2023

Hi @Justin Gong 

From an automation rule, that changelog information is only available with the Issue Moved trigger in the destination project.

This would provide the information, if you wrote it to the log:

{{issue.key}} was moved {{#changelog.project}}from "{{fromString}}" to "{{toString}}"{{/}}

Kind regards,
Bill

Justin Gong December 7, 2023

Thanks for your reply Bill. What do you mean by "Issue Moved trigger in the destination project."? I currently have the moved issue trigger to be from any project to any project. 

Bill Sheboy
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.
December 7, 2023

That should be okay also.

I was noting that the "fromString" and "toString" would be relative to the project to-which-the-issue-was-moved.  And so if the rule was project-scope, versus global, that is where the rule would trigger.

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