Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I query Assets (Insight) in JSM to find the previous owner (assignee) of an asset?

Kalin U
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2023

Hello, community.

I'm trying to find the previous owner (assignee) of a workstations that we track in Assets. We use an attribute "Assigned to" in objects "Workstations". The attribute on its end refers to an object of type "Users".

When I open the "Activity" tab of a workstation, I can see the previous values of "Assigned to". However, I want to find all workstations that at some point were assigned to a specific user. Or find all users that were assigned to a specific workstation. Is that possible?

I could not find an operator "WAS" in AQL (IQL), similar to the one in JQL, that surfaces objects (or issues in the case of JQL) that had a specific value in the past.

2 answers

2 accepted

3 votes
Answer accepted
Dirk Ronsmans
Community Champion
August 20, 2023

Hi @Kalin U ,

Sadly it's not yet possible to use a WAS operator in AQL. They are tracking a suggestion about it tho here https://jira.atlassian.com/browse/JSDCLOUD-10768

I suggest adding your vote to the issue and adding yourself as a watcher to be notified of any changes.

Kalin U
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2023

Thanks for tip. Do you know any workaround besides manually checking the "Activity" tab?

1 vote
Answer accepted
MF
Contributor
August 21, 2023

A workaround could be:

Query ALL objects (to get the ids) and then a query loop to gather all history data via https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-id-history-get then you can iterate over all data to filter the searched User...

MF
Contributor
August 21, 2023

If you cache the history data and just check for not cached objects its a little less expensive...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events