I have a Scriptrunner query on a project that is synced and shared with everyone and is used on a board. For the user that created it this works fine. Other users can see the correct results when opening the scriptrunner query on the project but the synced filter used on the board returns incomplete results.
I thought the queries ran as the plugin user but this result suggests otherwise. Can I get the query to run in a way that either captures all results or results that apply to the user viewing the board?
Hello @ChinnoDog
Can you show us the query you created?
How are you using the filter in the board? Is it used as the base filter for the board or as a Quick Filter?
This is my query:
issueFunction in subtasksOf("statusCategory = 'To Do'")
The purpose of this query is to find subtasks of issues that are not started yet. I use this in the board sub-filter by appending 'AND filter != 10136'. The effect is that subtasks of issues that aren't started don't appear on the board.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you confirm you are using a Kanban board?
Is 10136 the ID for the filter you created in ScriptRunner (the query you have shown)?
What is the base filter for the board?
Can you show us the complete sub-filter for the board?
When the filter is used on the board you said it returns "incomplete results". Can you provide details about how the results don't match your expectations? Are issues being displayed that you think should be excluded? Are issues being excluded that you think should be displayed? Can you provide details about those issues (type, status)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @ChinnoDog
You need to refactor script, set there user, under whom rights you want to execute query.
Don't know, how exactly you create custom query, but maybe this can help:
ComponentAccessor.jiraAuthenticationContext.setLoggedInUser(ApplicationUser user)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.