Forums

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

How can I search issues with insight object field conditon?

jun lee
Contributor
March 15, 2023

I made enm_system custom field referring to system object field. However I can't search created issue with enm_system custom field.

2023-03-16 09 15 59.jpg

2023-03-16 09 16 51.jpg

I tried several ways. How should I do?

 project = ENMCOMITSM AND ENM_System in iqlFunction("System.\"Name\" = \"ONTRUST.주문\"")

project = ENMCOMITSM AND ENM_System in iqlFunction("Name = ONTRUST.주문")

project = ENMCOMITSM AND ENM_System in iqlFunction("Object HAVING outboundReferences(Name = \"ONTRUST.주문\")")

2023-03-16 09 17 27.jpg

1 answer

0 votes
Dirk Ronsmans
Community Champion
March 15, 2023

Hi @jun lee ,

If the insight/assets field is on your issue and you are running an IQL you don't need to use the iqlfunction()

You should be able to do this as easy as

project = ENMCOMITSM AND ENM_System = 'ONTRUST.주문'

jun lee
Contributor
March 16, 2023

Hi @Dirk Ronsmans 

It dosen't show issues. 

2023-03-16 16 09 53.jpg

Dirk Ronsmans
Community Champion
March 16, 2023

If you type out the query in the last part where it will select the Insight/Assets object could you do this manually so you get a type-ahead suggestion?

instead of copy pasting the query please type it out manually to see if the JQL editor suggests the proper insight object

jun lee
Contributor
March 16, 2023

Thank you @Dirk Ronsmans 

It works.

 

Can I ask one more?

I would like to add an automation rule that assign to user in a group. When system object has support group attributes, support group object has manager attributes, and manager object is a person. 

2023-03-16 16 42 29.jpg2023-03-16 16 42 47.jpg

 

I want to set user in the object field, not group of user management.  Is it possilble?

2023-03-16 16 48 19.jpg

Serdest Turanli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 10, 2023

Hi @jun lee 

I think you can do that not with automation, but changing the workflow, and adding a Post Function

I can't add picture so I will write it:

Assign issue with a user from the attribute ******** selected from the Assets custom field ******

Suggest an answer

Log in or Sign up to answer