Forums

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

How to copy the reporter of the main ticket to the watcher of the auto-created linked ticket

MayYT November 9, 2022

Hello guys, really need your help on this.

 

For example, 2 projects, 

Project A - ticket AAA

Project B - ticket BBB

When the status of ticket AAA is updated to "Approved" in Project A, I use automation to auto create a ticket in Project B (ticket BBB), and automation will link ticket BBB to ticket AAA.

I want to copy the reporter in ticket AAA to the watcher in the linked ticket BBB. 

There is no watcher option in Automation Action - "Create Issue".

Anyway to use "More options" in "Additional fields" ?

 

Also note that the reporter in Project A has only "View" permission in Project B.

 

4 answers

4 accepted

1 vote
Answer accepted
Tharaka_Hettiarachchi
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.
November 9, 2022

Hi @MayYT ,

 

1. First you need to change the scope of project (because we are creating in multiple projects)

Screenshot 2022-11-09 at 17.02.36.png

 

2. Once you created the issue then create a branch rule (Please refer above attachment) for all created issues in project B

 

3. Then add new action as manage watcher

In that add smart value like '{{triggerIssue.reporter}}'

0 votes
Answer accepted
MayYT November 9, 2022

Thank you a lot @Patricia Francezi  and @Tharaka_Hettiarachchi  for the prompt reply!!

Yes, adding smart value {{triggerIssue.reporter}} into Manage watchers action is working ! and this smart value is what I am looking for!

I wish I should have asked the community earlier haha, I have surveyed online for very long time and came out with a workaround earlier which is also working and would like to share here also. 

I refer to this article How do I tag a specific user in a comment from automation?

and tag/mention the ticket AAA's reporter into the Description of the linked ticket BBB, then this ticket AAA's reporter will become ticket BBB's watcher because he/she is tagged/mentioned in the Description of ticket BBB.

Adding below value in the Description in Action - Create issue, Description

[~accountid:{{issue.reporter.accountId}}]

Add watcher.PNG

Patricia Francezi
Community Champion
November 10, 2022

Good one. 

The only caveat on this about mentioning is the profile configuration. 

People can set up if they will or wont receive notifications via email when become a watcher. 

0 votes
Answer accepted
MayYT November 9, 2022

Thank you a lot @Patricia Francezi  and @Tharaka_Hettiarachchi  for the prompt reply!!

Yes, adding smart value {{triggerIssue.reporter}} into Manage watchers action is working ! and this smart value is what I am looking for!

I wish I should have asked the community earlier haha, I have surveyed online for very long time and came out with a workaround earlier which is also working and would like to share here also. 

I refer to this article How do I tag a specific user in a comment from automation?

and tag/mention the ticket AAA's reporter into the Description of the linked ticket BBB, then this ticket AAA's reporter will become ticket BBB's watcher because he/she is tagged/mentioned in the Description of ticket BBB.

Adding below value in the Description in Action - Create issue, Description

[~accountid:{{issue.reporter.accountId}}]

Add watcher.PNG

0 votes
Answer accepted
Patricia Francezi
Community Champion
November 9, 2022

Hi @MayYT 

Welcome to the community

I suggest you trying to use Branch Issues in your create rule to perform more actions on the recent create issue.

Check this if this is new for you https://support.atlassian.com/cloud-automation/docs/what-is-rule-branching/

Here is the doc related https://support.atlassian.com/cloud-automation/docs/branch-automation-rules-to-perform-actions-on-related-issues/

 

Branch with all issue created or mostly recent create (if there are multiple issues created by the rule)


Inside the branch you will use Manage watcher action, and the smart value {{triggerissue.reporter}} in add watcher field. 

 

2022-11-09 08_38_52-Window.png

 

If this works, please accept my answer. Or let me know how to guide you in your learning about it. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events