Issue Re-assignment Event

Hi,

I have a requirement where i want the current user to be added as watcher whenever that issue is re-assigned to someone else. I know that this can be done with help of post function but i don't know how i can track this "re-assignment" event ??

Please help me out as i need this urgently.

Thanks

1 answer

Hi Hiren,

Simply add the assignee to the watchers list using the issue assigned event.

This is triggered everytime the issue is assigned (so also when the issue is reassigned).

Best regards,

Peter

Thanks Peter for your response bu i am a newbee. Can you please elaborate. I have added post functions in Workflows but i am not getting an idea about how i can write post function for "Issue Assigned" event ??

Hi Hiren

The easiest way might be using the JIRA Toolbox plugin and the watchers postfunctions it provides: https://marketplace.atlassian.com/plugins/com.fca.jira.plugins.workflowToolbox.workflow-toolbox

Another option might be to write your own post function using the scriptrunner plugin: https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner

Autowatching might also be a solution:

https://confluence.atlassian.com/pages/viewpage.action?pageId=591593930

Best regards,

Peter

Well, those plugins really don't fir mt situation but yes if i find a way to capture issue-assign event from groovy listener, may be i can achieve what i want.

But how do i capture issue assigned event in groovy runner ??

Use the listeners to listen for the Issue Assigned Event, they can then trigger your groovy script.

I'm sorry peter but I think i was not able to explain my last comment. My concern is that how do i get the last Assignee. I have used the custom listener but i am not getting the last assignee. All i get is the current assignee and not the older one

Hi Hiren,

If you trigger this listener on every issue assigned, issue created or issue updated event you should be able to add everybody that was once assignee to the watchers (and even the current assignee will be added). It will indeed always be the current assignee you're adding, not the old one. But this will make no difference in the end.

Do keep in mind that you cannot add somebody multiple times to the watchers so you shouldn't be worrying about that.

Best regards,

Peter

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

94 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you