Forums

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

Automation that gets the last created issue from another project and adds that key to the comments

Brad Marsh July 30, 2023

Hi Folks. 

I have automation that creates a new issue which copies from 1 project (Project a) into a new project (project b). That works great, but trying to get Project a's issue to be updated with the issue id from project b. I can't get this to work. 

So an example here is 
Project a has an issue ID of projectA-12
Through automation it was able to create a new issue called ProjectB-3 it copied the content from Project A (this is what I wanted). With this now created I want it to update 

projectA-12 in the comments to say "ProjectB-3 was created" 

Any ideas on how I can accomplish this?

1 answer

1 accepted

3 votes
Answer accepted
Ste Wright
Community Champion
July 30, 2023

Hi @Brad Marsh 

You should be able to use {{createdissue.key}} as the smart value in a comment, to refer to the most recently created issue from within the rule.

For example...

  • Action: Clone Issue
  • Action: Comment on issue
    • Comment = {{createdissue.key}} was created.

Ste

Brad Marsh July 30, 2023

THANK YOU Ste. 

{{createdissue.key} worked

Like Ste Wright likes this
Ste Wright
Community Champion
July 30, 2023

Awesome!

If this did help, could you accept the answer? Helps others know via a visual that it's the right solution :)

Ste

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events