Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to auto assign a ticket based on the object taken from assets?

Yousuf Al Rawahi
Contributor
May 26, 2024

There is a custom field (assets object field) called 'Resignee' where the data is taken from assets (objects), each object includes name, ID, department, manager...etc. When I create a ticket and select reporter 'Yousif Al Rawahi', the resignee field will be shown as Yousif Al Rawahi with his information (by automation rule):

Screenshot 2024-05-27 102418.png

 

Now I want to do with the assignee, based on Yousif Al Rawahi's manager, I want to assign this ticket to the manager when the ticket is created (by automation rule). Is it possible?

FYI: manager is a 'User' type:

 

Screenshot 2024-05-27 103213.png

1 answer

1 vote
Sayed Bares [ServiceRocket]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 27, 2024

@Yousuf Al Rawahi yes that is totally possible:

  1. You will need to listen issue created trigger
  2. Add Lookup objects action to find your asset user object (which in this case should be Yousif Al Rawahi)
    1. Schema -> select the schema which your user objects are stored
    2. Query -> use a query to compare your Resignee with the user object in the asset scheme eg. Name like "{{issue.resignee.name}}"
  3. Add Assign issue action
    1. set Select a user to {{lookupObjects.Manager}} smart value

Hope it helps!

Yousuf Al Rawahi
Contributor
May 27, 2024

The automation status is successful, but it is not assigned, it says 'Issue was already unassigned'

Screenshot 2024-05-27 150921.png

 

 

Screenshot 2024-05-27 151130.png

Sayed Bares [ServiceRocket]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 28, 2024

@Yousuf Al Rawahi your query in the lookup object is wrong, it should be something similar to

 Name like "{{issue.Resignee.name}}" 

If it doesnt work what is the output of

Name like "{{issue.Resignee.name}}"  if added in a log action? is Yousif Al Rawahi  object under IT assets? Can you share a screen shot from Resignee custom field configuration?

Yousuf Al Rawahi
Contributor
May 28, 2024

In the log action it displays as my name.

It still doesn't work, it says 'Issue was already unassigned' when assigning an issue.

 

Resignee configuration:

 

Screenshot 2024-05-28 123445.png

Yousuf Al Rawahi
Contributor
May 28, 2024

What is the purpose of adding Name Like in lookup objects?

 

I have used {{lookupObjects.Manager}} in log action, it gives me and empty result. It could be an issue from {{lookupObjects.Manager}}.  

 

Screenshot 2024-05-29 092048.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events