Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Structure Wiki Markup Column - Show if Current User is a Watcher

MAX
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2024

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!

MAX-TRAX Structure Column - Watchers Help 2024.10.17.pngMAX-TRAX Structure Watchers Rich Smart Filter Help 2024.10.17.png

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Stepan Kholodov _Tempo_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 18, 2024

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)

MAX
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 18, 2024

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.

0 votes
Stepan Kholodov _Tempo_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 21, 2024

@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


TAGS
AUG Leaders

Atlassian Community Events