Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Automate Issue Assignment, BUT only to logged-in agents


I am trying to create an automation to assign issues to Service Desk Agents. But, I would like to assign issues only to the Agents how are logged-in (i.e. not on holiday/sick etc.)

I can't figure out how to add condition in the automation to check logged-in Agents. Could someone please help? thanks a lot in advance.

1 answer

1 accepted

0 votes
Answer accepted

Jira does not really have a "user is logged in" block of code, it's a reactive service, not an active one.  It only knows a user is logged in when they are interacting with it, and that's atomic - you could say "they've logged in, so count them as such until their session expires", but that's no guarantee that they're logged in - I regularly open Jira, have a rummage, and then wander off to do something else.  Am I still logged in during the next several hours I'm not even in front of the computer?

You will need to set up some form of calnder so you can tell Jira when a user is available to be assigned.  I've seen this done in Jira with a project that had one issue per user, with an automation that flagged it as "open" while they were on call, and "away" when not, plus a "holiday/sickness" flag to deal with the non-standard breaks.

There are some apps in the marketplace that are a lot more flexible and powerful than that.

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

An unofficial way to monitor a JSM mail handler for errors

...eturns true if any content is returned for the s...

654 views 3 19
Read article

Atlassian Community Events