most recently created issue

Steven Vits February 22, 2024

I have a trigger that starts on the cloning of an issue

When Issue linked (cloners)

the {{triggerIssue.key}} seems to be the master aswel as the {{Issue.key}}.

to paste a comment in the clone i need to get the most recently created issue from the branch I do assueme.

The Audit log provides me 2 issues for the trigger so if I can get these values in a var it would be possible to?

help is welcome.

2 answers

1 accepted

0 votes
Answer accepted
Steven Vits February 25, 2024

Reading the audit log provided me the info:

you can also access it via {{destinationIssue}}):

 

0 votes
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2024

Hi @Steven Vits,

The easiest way to add actions to your most recently created issue would indeed be a setup like this:

Screenshot 2024-02-22 at 11.19.08.png 

Hope this helps!

Steven Vits February 22, 2024

I'm affraid this is not a possible approach in this case.

I do have a manual trigger that clones an issue to another project depending on a choice field given in a pop-up.

Due multiple choices the rule is getting to long for multiple additions, max 65 actions.

So thing is I'm trying to figure out how to copy the comments from master to clone in a global rule.

It seems to work but finetuning that only the latest clone will be provided with all the comments would be appropriate.

What I made was next:

JA01.pngJA02.pngJA03.png

the most recently created is giving next error:

Branch rule / related issues
Can't branch rule as it requires issues to have been previously created by this rule. More than likely you have not yet created an issue or the issue(s) were created in an another 'If' block or branch - these would then not be visible outside of that block/branch.
other option is commenting all possible cloned issues but wanted to cover that would not happen.
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2024

I was somehow expecting you would say that, @Steven Vits,

When seeking assistance for automation rules, it is always difficult to fill in the blanks from only a description and no insight into the whole construction of the rule you are struggling with. It's always best to share your full configuration (though I understand that's not easy it it's as extensive as you describe).

On that last thought, you seem to trying to put too much complexity in a single rule here. You may want to take a look at splitting your rule: on to create your issue and another one to add the comments, based of the issue created trigger. Doing it that way will make it much easier to use the approach I suggested. 

Steven Vits February 22, 2024

You could be true in some cases @Walter Buggenhout 

the first flow however is quite simple but the taken steps are repeated multiple times due of multiple possible projectchoices. 

That is a buisiness driven choice I can not interfear with.

So I try to make it simpler making a manual action with choice field.

otherwise manual clone and manual move clone to and change status of issue.

I do not see at this point how to simplify that.

copying all comments of the master is the second rule but therefor I do want to select the new made clone instead of possible other clones.

Thank you for the given advice.

Steven Vits February 25, 2024

Reading the audit log provided me the info:

you can also access it via {{destinationIssue}}):

Suggest an answer

Log in or Sign up to answer