- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2014 10:53 PM
Hi all,
Creating a filter on 1 of the reports and want to filter Project tasks if top task is of type template.Trying to use script include which is returning the list of sys_ids of projects of type "templates" .On filter set the Top_tasks is not javascript:gs.getTemplateProjects().But It is not filtering the desired tasks.Is there any thing we have to make sure while using the script include functions in filter.I would appreciate any help on this.
Regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2014 03:15 AM
Thanks Anurag and Sebastian, Finally below syntax worked for me.
"Top Task" "is not" "javascript:getTemplateProjects()"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2014 12:34 AM
Hi Vibhor.
is getTemplateProjects your script include? I currently don't quite understand your intention. But what I can say is that calling a script include from a reference qualifier (as an example) you use javascript:[your_script_include].
If you wrote a new class in the script include, instantiate it with new [yourscript_include].
Maybe this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2014 04:29 AM
Hi Vibhor,
I think that you have created a function by the name getTemplateProjects() . so to call this you cant use gs.getTemplateProjects().
on the filter use
<Top Task > <is, contains, is one of, is not> <new YourScripInclude().getTemplateProjects()>
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2014 03:15 AM
Thanks Anurag and Sebastian, Finally below syntax worked for me.
"Top Task" "is not" "javascript:getTemplateProjects()"