Report - Calling a variable from a different table as a condition in sort

STRNow
Tera Contributor

Hello,

 

Hopefully this is an easy one, we've found a workaround but its not optimal and sets us up for future failure and figured I'd use this as a learning opportunity.

 

I have the change_request table that we're creating a report for. We're looking to filter the table to only lists users that belong to a certain group (lets call it Pie Eaters). The group isn't an assigned group/division/department or anything like that but it does exist in the Group table.

 

Is there a way to call that list into the conditions form? I had asked in the Slack forum and someone suggested copying the query of the group which I did but don't know where to place it on here.

 

I also may just be misinterpreting what they meant. I'm not too familiar with building querys so any insight on that would be helpful as well. 😅

 

 

image.png

1 ACCEPTED SOLUTION

Murthy Ch
Giga Sage

Hello @STRNow 

Yes, you can achieve this. By calling the script include in conditions.

Try something like below screenshot:

Assuming Requested by should be a part of "Pie Eaters" group so for this you can query the group members in script include method and call it in your condition.

MurthyCh_0-1718754180552.png

MurthyCh_1-1718754213417.png

Make sure client callable is checked in script include.

Let me know if you need any help.

(=tested)

Thanks,
Murthy

View solution in original post

5 REPLIES 5

Murthy Ch
Giga Sage

Hello @STRNow 

Yes, you can achieve this. By calling the script include in conditions.

Try something like below screenshot:

Assuming Requested by should be a part of "Pie Eaters" group so for this you can query the group members in script include method and call it in your condition.

MurthyCh_0-1718754180552.png

MurthyCh_1-1718754213417.png

Make sure client callable is checked in script include.

Let me know if you need any help.

(=tested)

Thanks,
Murthy

STRNow
Tera Contributor

It's coming up Null for me.. not sure why, I did a background test and was able to successfully generate a list. Mind taking a look for me?

 

STRNow_1-1718811593642.png

 

STRNow_0-1718806219269.png

 

 

 

@STRNow 
Make sure client callable is checked in script include.

Thanks,
Murthy

Amit Verma
Kilo Patron
Kilo Patron

Hi @STRNow

 

Could you please elaborate a bit on your requirement ? I am not able to understand why you need to display users from a group in a report on change request table.

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.