Auto assignments of issues for disabled user.

Whats is the best way to assigned ticket to some other users, if existing assignee left the company. we are looking for better solution. we are doing automation using API, to disable user in JIRA but if user has ticket assigned or if he is component lead, we cant disable user.

one option : assign ticket back to reporter.

is there any other option in jira, please lets know.

 

Thanks

Mangesh

 

 

2 answers

You can create a virtual user with noUser for this. When you need to disable somebody you can assign all issues to this virtual user and then reasegn it to real users.

You could add this change of assignee operation to your user disable script before the actual user is disabled. There are REST commands for that too.

https://docs.atlassian.com/jira/REST/latest/#api/2/issue-assign

if you use -1, this uses the automatic assignee, or "" to simply remove the assignee.

To change the assignee automatically back to the reporter would require some heavier scripting. Getting the issues where user x is the assignee, getting the reporter of these issues, and make a loop  to assign issues to the reporter.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published 4 hours ago in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

235 views 3 4
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