Any idea javascript:'sys_idIN'+ScrumSecurityManager.getStoryDotProduct(current).join(',')

Supriya13
Giga Expert

any idea whats this filetrs do in  refernce qualifier of product on story form ?

find_real_file.png

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

This reference qualifier returns comma separated list of sys_id's from table "cmdb_application_product_model"

find_real_file.png

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

5 REPLIES 5

SumanthDosapati
Mega Sage
Mega Sage

Hi Supriya,

> You have a script include named : ScrumSecurityManager

> In that script include you have a function named : getStoryDotProduction

> You are passing current record value to that function in that script include

> that script include process the code in it and return an array of values

> You are converting the array to comma seperated string using join() function.

> Now applying the query as sys_id IN those values.

 

For example:

The ScrumSecurityManager.getStoryDotProduction(current) calls the script include

You are getting return array from above call as [a,b,c,d]

Using join it will become string "a,b,c,d"

Now your query becomes sys_idINa,b,c,d

It means Filter all records whose sys id is a or b or c or d

 

Mark as correct and helpful if it solved your query.

Regards,

Sumanth

 

Hi,

Is your query solved? If not feel free to ask your questions or else mark an answer as correct and helpful and close the thread.

 

Regards,

Sumanth

Anil Lande
Kilo Patron

Hi,

This reference qualifier returns comma separated list of sys_id's from table "cmdb_application_product_model"

find_real_file.png

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Can you please let me know the name of the script include. I have seen scrumSecurityManager script but there I can't get this function