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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,456,341
Community Members
 
Community Events
176
Community Groups

Sort Insight field (object picker) to present reporter's assets first

Hi,

I have an Insight field that lists all of the computer objects in my scheme.
Each computer has an Owner attribute, which is another object from type User.

When user creates a new ticket, I want to sort this field and present first at the top of the list, the computers which belong to the creator (Owner attribute == currentUser).

Is there a way to do this?

Thanks

1 answer

0 votes

I don't think that's possible.

You can filter the object only based on placeholders. You can't adjust the sort order.

Here is a hack you might want to consider:

1) Add a radio button custom field (e.g. "Computers to show") with 2options labeled "All" and "Mine"

2) Add a new text attribute to your computer object type (e.g. "Display Filter") and ensure that all objects always contains the value "All" either via automation or via your import configuration

Change your IQL filter configuration for the Computer custom field to:

objectType = Computer and (Owner = currentUser()  or "Display Filter" = ${Computers to show})

This way, if the user selects Mine ... only objects matching the first half of the parens will be true and only the objects owned by the current user will appear. If the user selects "All", then all objects will be available.

This could be made cleaner if IQL/Placeholder allowed comparing placeholder against literal values. But that's not supported. So we trick the system by using the new attribute.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events