Hi all,
I'm trying to show a Structure hierarchy in which users can see all items in the structure with a column telling them if they are a Watcher for each Issue.
I've got a JQL Filter that works in this regard, but they would prefer it be in Structure in its own View, since most of our work is important only in its context.
This is the Rich Filter in JQL that produces the intended effect.
"IS A WATCHER" Smart Filter
watchers = currentuser()
"IS NOT A WATCHER" Smart Filter
watchers != currenuser()
This is the current Wiki Markup code I'm trying to use in a Structure column:
IF( watchers = currentuser; "it be true"; watchers != currentuser; "it be false" )
Thanks for your help!
Hello @MAX
You can do it by adding the Query Match column to the structure, selecting Query type: JQL and adding watcher = currentuser() query there. The column will show the green checkmark if the user who views the structure is a watcher in any of its issues.
I hope this helps. If you need further assistance or if you have other questions about Structure, please reach out to us directly at our support portal.
Best regards,
Stepan
Tempo (the Structure app vendor)
Hi Stepan,
Thanks so much, this works as I need it to! I appreciate your help and the speedy response! :)
I have a follow up question: do you happen to know why the "Watcher" field doesn't work similar to any other fields for the Formula Column, like it does anywhere else? I would prefer to have some customization wherever possible (to make more complex JQL queries/statements, conditional formatting, etc.).
Reason being, I have some users that are not super tech-savvy, and having it explicitly and colorfully display "Watching" and "Not Watching" in the column instead of a check mark would be more helpful for them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@MAX
The list of watchers is not available on the Issue Page the same as other field's data - you can only see the number of watchers there. The names are provided on a separate request that is being sent when you click on the number of watchers. Without direct access, Structure can't show the list as a field's value.
If having a green checkmark is not informative enough, you can try:
1. Simply rename the Query match column to something like "Am I a watcher?". The green checkmark will give a more obvious answer.
2. Use the formula: if abc: "watching" else "not watching"
and set the abc variable as the Query match attribute, and configure it the same way as I mentioned earlier.
Best regards,
Stepan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.