Forums

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

How do I get the from project name when moving an issue

Victor Jiang
Contributor
June 23, 2019

I'm trying to capture the previous project name when moving an Issue from one project to another...

 

After looking at the documentation, it seems that the following should work...

{{#changelog.project.name}}{{fromString}}{{/}}

but unfortunately, it doesn't. neither does these...

{{#changelog.project}}{{fromString}}{{/}}
{{#changelog.project.name}}{{from}}{{/}}

 

Am I doing something wrong?

 

Thanks in advance.

1 answer

1 accepted

0 votes
Answer accepted
Deleted user June 24, 2019

Hi Victor,

I'm a bit surprised that you're having this issue. The following works for me:

{{#changelog.Project}}{{fromString}}{{/}}

 Could I get you to open a support ticket with us so we can work this through with you? If you could include a screenshot of your rule configuration that would be fantastic.

Cheers,

Simeon [Automation for Jira]

Victor Jiang
Contributor
June 24, 2019

Hi Simeon, thanks for the quick response. I just tried again and looks like it's working now with...

{{#changelog.project}}{{fromString}}{{/}}

I don't know why it didn't work yesterday.

Also, how do I get the previous issue key? I'm assuming it's the below but it returns empty string.

{{#changelog.issue.key}}{{fromString}}{{/}}

 

Thanks in advance!

Deleted user June 24, 2019

Hi Victor,

No worries, glad it is working.

For the issue key, the smart value is:

{{#changelog.Key}}{{fromString}}{{/}}

The trick to pulling these values out of the changelog is to look at the entries on the history tab:

changelog.pngI can see from this here that I can refer to three items from the move and the issue key is in there as Key.

Hopefully that helps.

Cheers,

Simeon.

Like Victor Jiang likes this
Victor Jiang
Contributor
June 24, 2019

That worked a treat! Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events