Forums

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

Adding the reporter of a bug upon linking an issue

Joe Harmon
Contributor
November 1, 2019

I have the automation for jira setup so that when someone links an issue it will add the reporter.  The problem is that it is adding the reporter of the current issue and not the linked issue.  Does anyone know how to change this so that it will add the reporter of the linked issue rather than the current issue?

 

Screenshot_1.png

1 answer

1 accepted

3 votes
Answer accepted
Avinash Bhagawati {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2019

Hi @Joe Harmon ,

You need use branch rule /related issues section and there you can add linked issues. Please refer below screenshots.

Screenshot 2019-11-01 at 7.52.54 PM.png

Screenshot 2019-11-01 at 7.53.05 PM.pngScreenshot 2019-11-01 at 7.51.35 PM.pngThanks,

Avinash

Joe Harmon
Contributor
November 1, 2019

Didn't work correctly.  I have issue A and issue B.  I want to link issue A to issue B.  I then want to have the reporter of issue A added as a watcher of issue B. It might even be good to have the reporter of issue B also added as a watcher of issue A.

 

What happened in the case of your programming example is that the reporter of issue A was added as a watcher of issue A and the reporter field was changed from the user to anonymous.

Avinash Bhagawati {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2019

Hi @Joe Harmon ,

Below automation rule working for the adding watcher to linked issue. I have tested with below scenario.

I have issue TEST-10 with reporter ABC and TEST-30 with reporter XYZ. When i link TEST -10 to TEST-30 , ABC is added to watcher list for TEST-30.

Screenshot 2019-11-01 at 8.17.14 PM.png

Thanks,

Avinash

Joe Harmon
Contributor
November 1, 2019

Strange, I have the same setup and it is adding the reporter as the watcher on the same issue.

Avinash Bhagawati {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2019

Hi @Joe Harmon ,

I tried with latest ira server version and automation for jira app . Are you trying with cloud ? If you are in cloud , you can try below parameters for reporter.

https://docs.automationforjira.com/knowledge-base/convert-usernames-to-user-account-id.html#converting-user-smart-values

Thanks,

Avinash

Like John McKiernan likes this
Joe Harmon
Contributor
November 1, 2019

No, I am Jira Server v8.3.4

Joe Harmon
Contributor
November 1, 2019

Avinash so let me explain a little more.  It actually is assign to the correct item, i was wrong about that, but it is assigning the wrong reporter.  In your example is the reporter the same person in both instances?

I have SP-74 and I mark it as a duplicate of SP-75.  So I want the reporter of SP-74 to be added to the watcher list of SP-75.  I am getting a watcher added to SP-75 but it is the reporter of SP-75 that is being added not the reporter for SP-74

Avinash Bhagawati {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2019

Hi @Joe Harmon ,

Yes, You are right on this and i have tested this multiple user case and i found that it watcher was adding from related issue reporter.

I have corrected the smart value now and please find below automation rule.

Hope this works for you :-) 

Screenshot 2019-11-02 at 1.57.46 AM.png

Avinash Bhagawati {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2019

Also below rule is for bidirectional adding watchers to linked issue for linking issue operation.

Screenshot 2019-11-02 at 2.06.25 AM.png

 

Thanks,

Avinash

Joe Harmon
Contributor
November 1, 2019

Awesome, that works.  Thanks

Avinash Bhagawati {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2019

Hi @Joe Harmon ,

Glad to know that it worked for you.

Thanks,

Avinash

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events