How can i add values (text from a cf or other values) as comment to a linked issue?

Matthias Lochmann September 20, 2023

Hello everyone,

I have issues with 1..n sub-tasks, and on these sub-tasks, risks need to be assessed (simple TEXT/custom field). Once the sub-task undergoes a certain status change, the risk assessment should appear as a comment in the linked issue.

what i need.jpg

If possible as follow:
"Summary of the Sub-Task"
+ "Assignee of the Sub-Task"
+ "TEXT of the Risk Custom Field of the Sub-Task").

What should the automation for this look like? I have created allready several automations, but never with linked issues... i have no idea... 

no idea.jpg

Thank you for your help...

Best Regards

Matthias

1 answer

1 vote
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 20, 2023

Hi @Matthias Lochmann try the following smart value...

{{issue.summary}} is assigned to {{issue.assignee}} which has the following risk assessment- {{issue.Risk Assessment}} 

Matthias Lochmann September 20, 2023

Thank you Jack..

Unfortunately I don't get the desired result, what i need3.jpgI tried some freestyle (second example) :), but that doesn't seem to exist... how do I get the information of the linked issue?

what i need2.jpg

Thank you for your help, Matthias

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 20, 2023

Ok so to get the dat from the linked issue I would try using variables. Under your branch create three variables: linkedAssignee, linkedSummary, linkedRisk. Then use these variables in your comment for the trigger issue outside of the branch. Something like this...

variables:

  • linkedAssignee - {{issue.assignee}}
  • linkedSummary - {{issue.summary}
  • linkedRisk - {{issue.Risk Assessment}}

then your comment would be...

during the audit {{linkedSummary}} by the auditor {{linkedAssignee}}, the risk assessment was as follows: {{linkedRisk}}

I am not where I can test out the automation so some trial and error is required here.

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.
September 20, 2023

Hi, @Jack Brickey   -- Variables created inside a branch which could-contain-more-than-one-issue are not available outside of the branch.  This is due to the parallel processing of the branched-to items.  The variables go out of scope and vanish after the branch...and there is no guarantee when the branch will finish, up to the last step of the rule anyway.

 

Hi @Matthias Lochmann 

Would you please clarify a bit...

You originally noted subtasks and then show linked issues.  Which are you trying to manage?

And in which issue do you want the comment to be added?  For example, in the parent issue (for subtasks), or ??? for linked issues?

Kind regards,
Bill

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 20, 2023

@Bill Sheboy , yes indeed! I completely forgot this. :-(

Good idea to get clarification here. My understanding/Assumption was that Matthias wanted to pull data from a linked issue into the parent.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events