Forums

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

Automatically leave a linked weblink in a comment

Chayoung Kim December 5, 2023

I am using 'Label' in the issue field. Using the reason as (Duplicated, Reject etc..).
The user can
1. changes the Label to Duplicated
2. link to the issue
If the above actions are accomplished, I would like to be able to comment on the web link through the Automation feature.
I found the condition 'Label = Duplicated', but it's hard to set the behavior after that.

2 answers

1 accepted

0 votes
Answer accepted
Megha Rajanna
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 6, 2023

Automation rule

  • Trigger:
    • Issue Transitioned
  • Condition:
    • Label = Duplicated
  • Actions:
    • Comment on issue:
      • Comment: "This issue has been marked as 'Duplicated.' The linked issue is {{issue.linked_issue.key}}."
Chayoung Kim December 6, 2023

Hi, @Megha Rajanna 

Your scenario is exactly what I wanted. However, an empty value is output as the "{{issue.linked_issue.key}}" value.5.png

Megha Rajanna
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 6, 2023

hi, @Chayoung Kim 

Try this in the action

comment on an issue -  {{#issue.issuelinks}} {{inwardIssue.url}}{{/}}

Chayoung Kim December 7, 2023

thanks. i solved this problem!

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 6, 2023

Hi @Chayoung Kim 

What have you done thus far to solve this?  If you have started an automation rule, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

Please answer these questions as they may help clarify your scenario:

Can the issue which you want to comment on be linked to multiple different issues?  If so, how do you know which issue should be provided in the comment?

You list at least 2 different criteria: a label change, linking the issue.  Which event(s) should occur (i.e., trigger) the adding of the comment?

Kind regards,
Bill

Chayoung Kim December 6, 2023

Hi, @Bill Sheboy 

Megha Rajanna's script is what I wanted. However, an empty value is output as the "{{issue.linked_issue.key}}" value.
I want the automatically linked issue URL to be left as a comment.

5.png

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