add user to a project role based on their group when their login to JIRA, when they logout they are remove from the project role

Hi All,

 

I have a requirement for Assignee,

Scenario:

When my user assign an issue, it will show only "Logged IN" user in the assignee field. When they logout from JIRA or close browser, they are not visible in assignee field

So far i have tried:

  1. group picker
  2. user picker based on project role
  3. Using nFeed

But i stuck with below: login.lastLoginMillis and lastAuthenticated method, since it will depends on the interval i set which end-users will vary on their behavior.

 

Any suggestion? If Scriptrunner able to do this or any other plugins?

 

2 answers

1 votes

None of those approaches are going to work really.  Fields don't have any information about who might be logged in as it's generally irrelevant, and even if you're thinking "only assign to people who are currently working", that's quite horrible because it's often the wrong option.  A far better option is to train your operatives to monitor and  react to the queues properly.  If something important comes in and you're unsure who is around, use a chat programme to see who is around and willing to pick it up for example.

But, if you must go this way, you are going to need to write a new field that, when rendered, can offer a list of users that you know have logged in less than X milliseconds ago.

Thanks Nic... will find a way

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

922 views 5 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot