How to modify the filter of watched issues gadget

This question is in reference to Atlassian Documentation: Adding the Watched Issues Gadget

I have added the "Watched Issues" gadget to my dashboard. It is showing all issues on which I am watcher including issues assigned to me/currentuser. I already have other widgets like "Assigned to me" and "Issues in progress" where I can see the issues assigned to me. I don't want issues which are assigned to me to be displayed again in watched issues gadget. Its duplication of issues.

On edit page of "Watched issues" gadget, there is an option to include resolved issues, however there is no option to not to include current user issues.

For short term solution, what is the way to modify the "watched issues gadget", if I don't want to include the issues which are assigned to current user?

For long term solution, you may want to add checkbox for "include current user issues" like existing "include resolved issues" on edit page of "watched issues".

1 answer

1 vote

No, the gadget does what it is supposed to, and what people expect it to - shows you the issues you are a watcher on.  It would be counter-intuitive to have it start dropping issues out because they might be on another gadget (that this gadget has no information about)

You should replace it with a "filter results" gadget instead.  One that uses a filter that shows you want you're looking for here.  It sounds like maybe the following would be a start:

watcher = currentUser() and assignee != currentUser()

Yes, I know that it does what is supposed to. Initially I was using filter only. But the problem with filter is that it shows only count, it doesn't show the list. We have to click on filter to get the list. Gadgets are better then filter. That's I searched for watched issues gadget, found it and added it.

But what's wrong in giving one more extra option to user? it doesn't harm. It gives more flexibility to user. If user want to list the watched issues which are assigned to them, they can check that checkbox or they can uncheck that checkbox if they don't want.

Filter results shows a list of issues (truncated if the results are large, but the watched issues gadget does a similar truncation)

The option you are asking for here is counter-intuitive at best, and quite hard to code for too.  You'd need to be asking the dashboard if there are other gadgets that might be showing issues from the list to exclude from this one.

What would it display if I put it on a dashboard on its own?  A list of issues described as "things you're watching", but an incorrect list, because you've removed issues from it.  You're requiring the user to understand that it's "watched issues that you're not the assignee on".  You'd at least want to change the title to make that clear, of course, but then you're into the minefield of other "what ifs".  Option for reporter?  Other custom fields?  Participants?  and so-on.   Wouldn't it be better to keep it plain and clear - "watcher" gadget reports on what you're watching, assignee gadget lists your assignments, and then have a generic "filter" gadget that gives the user the freedom to use whatever filter they want?

I guess I was missing something. Since you referred Filter results. I searched for Filter results gadget and fount it. Now I am using Filter results gadget instead of watched issues which is solving my problem. Thanks a lot. I didn't know about Filter results gadget. You could have told me about Filter results gadget rearlier.

My very first response to your question explicitly said

You should replace it with a "filter results" gadget instead.

I'd suggest taking a little more care next time you're reading an answer.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

467 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you