Forums

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

Dashboard with issueFunction

perla.miranda
Contributor
March 3, 2022

Hi,

I'm having a problem with issueFunction. 

What am I trying to accomplish?

I would like to have a dashboard that shows the parent task if the current user is assigned to one of its subtask or if the parent task itself it's assigned to the current user. (Basically, if I log in I want to see the parent task if I'm assigned to a subtask). There are multiple sub-tasks and they can be assigned to different people. The people who has the parent task is the main one who reviews all sub-tasks once completed. (These parent tasks are part of an Epic)

How am I trying to accomplish this?

I have ScriptRunner and I'm using ScriptRunner Enhanced Search to create a filter. Filter is currently set to (I'm not worried about the second part since that works):

issueFunction in parentsOf("assignee = currentUser()")OR(issuetype=Task AND assignee=currentUser())

 This filter is saved as "Tasks that I'm a part of". "Sync Filter" enabled, "Share with all" enabled. Then I have a filter gadget on the dashboard to display the issues.

Main issue that I'm having?

The filter works perfectly fine for me. However, this is not working properly for other users. Other users are getting my filter results. So if I get 7 results, the other users are getting the exact same results as me. They currently have nothing assigned. It's almost as if the issues keys are hard coded because they appear as below when they open the filter.

issue in (TCM-199, TCM-143, TCM-128, TCM-94, TCM-83, TCM-63, TCM-32) OR(issuetype=Task AND assignee=currentUser())

So just to clarify, the filters are actually loading on the dashboards but they just have my results in the dashboard. I don't believe this is an issue with permissions. I believe I've set that everywhere that I can.

 

Any help would be appreciated on how to ensure that issueFunction loads the correct results on everyone's dashboard.

1 answer

0 votes
Crystelle S
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2022

you might want to go over to the support.atlassian.com site and report this - this all looks solid to me and must be related to the gadget.

Suggest an answer

Log in or Sign up to answer