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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Search pages based on @Mentions

Is there a way to search based on a specific @Mention? For example, find all pages that have used "@John Doe" as a mention.

10 answers

2 accepted

11 votes
Answer accepted

A search macro for @mentions would be nice!

9 votes
Answer accepted
  1. Go to search page -> https://YOURINSTANCE.atlassian.net/wiki/dosearchsite.action  (or type something on right top search bar and hit enter)
  2. On Search Page, click "Add a filter" link on left sidebar
  3. Select "MENTIONING USER" filter
  4. Type related user and select one in suggested
  5. Voila!

 

hi there

i could not find "Add a filter" link on left sidebar in our Confluence cloud instance 

This filter does not appear in the new version. Please use (YOURINSTANCE).atlassian.net/wiki/dosearchsite.action address to use this filter. So change the URL on the browser manually. 

Screen Shot 2020-03-05 at 15.01.37.png

Like # people like this

Hi! This doesn't work for me. Following that link brings me to the normal search page. There is no such function as "mentioning user" 

 

There seems to be some redirect in place 

XXX.atlassian.net/wiki/search?redirect=true

I also tried to follow that instruction, but unfortunately, wasn't successful

Hmmm, currently It works for me; maybe there are some differences between cloud instance. 

I was able to find pages where i was mentioned using this: https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/

1. Go to your Profile and copy your account-id from the address-bar. (e.g.: 99:27935d01-XXXX-XXXX-XXXX-a9b8d3b2ae2e)

2. Use the following in the search field `mention = "99:27935d01-XXXX-XXXX-XXXX-a9b8d3b2ae2e"`

 

The article also mentions another query that could be useful:

_Find all content that mentions the user with accountId 99:27935d01-XXXX-XXXX-XXXX-a9b8d3b2ae2e, but was not created by the same user_

`mention = "99:27935d01-XXXX-XXXX-XXXX-a9b8d3b2ae2e" and creator != "99:27935d01-XXXX-XXXX-XXXX-a9b8d3b2ae2e"`

 

Edit: It appears this does not work as I thought it would. This searches for the literal string of your account-id.  However, this still finds all the pages you were mentioned on.

The advanced search CQL is only available for the REST API.

Like # people like this

Is there no solution still even now? this would be really handy so we can resolve all items where our names have been mentioned. ...the thread seemed to have started 9 years ago.... did any one find a solution??

this is broken! in 2020!?! 

0 votes

Seems like a lot of people are looking for this feature for the same reason we are. We designate a username as the page owner/subject matter expert, and we would like a way to easily see all the pages in which that person's username appears. We are on cloud. Even if the search feature worked (it doesn't seem to) then that wouldn't be helpful/practical for most of our users. 

Bump - this would be incredibly useful for my organization as well. 

Confluence Server 7.11.1:

I just tried to enter in the Search and it worked well:

@username

Remember to select a Type as Page in this case.

There's a workaround if filtering by:

comment ~ "user_id" ORDER BY updated DESC


Where user_id is found in the URL when going to your Jira Profile screen. (Click on your profile image on the top-right corner).

I just searched for @username and it seems to have worked. Not 100% certain, though.

This could be working indeed!

But as Tom pointed out, I'm not a 100% sure either. Does a search for @username really search for mentions only? Or are there hits in the results where only the username (without being specifically being a mention) is on a page?

Thanks guys. But not really working. I just created a new page with a raw username on it (not an @mention). I can gaurantee that the username was not searchable before adding it to the page (just created the user).

A search for @username returned the search result for the raw username. So, it appears the search field is ignoring the '@' notation.

With the SQL plugin, I have been able to pull a list of my pages that contain a specific string in the content. I wonder if you could do the same thing, where you create a table and just do a sql query for the SME field, returning the name there in your query output.

Thanks for the suggestion. However, I think if we were to go through this much work we may instead investigate writing a search plug-in macro for @Mentions.

0 votes

Hi Chad,

We don't really have a good way of doing this right now. Can I ask why this is important to you?

We are creating pages in confluence, one for each deliverable in our product. As we are defining the page (as a small group of people) we are adding @Mentions in the pages as a way of identifying subject matter experts (from the larger group of people). This is convenient because we can associate some people with the content and they get emailed as a heads-up. Later on we would like to run some reports (searches) based on subject matter experts to see which deliverables they are associated with.

I think this will be a big time saver when we start turning our deliverables into JIRA tasks and making formal assignments.

Like Djahari Clark likes this

I know it's been a while since this question was asked. But I'm looking for a solution to this problem as well. Any news on this?

I could use this; we have a user that we want to find all mentions of so we can update it to the proper account.

Bump. This is useful for when you have people changing roles (or leaving the team) and somebody else needs to understand what they've been responsible for.

This is really frustrating not having this ability. I have several teams that are using the @mention across different spaces. I need to be able to search for particular users to see where they have been mentioned in order to see what they may have been assigned.

Like # people like this
Deleted user Mar 16, 2016

We would also need this search feature, as we need to track open questions that have not been assigned as tasks

We would also really appreciate this feature. Several users have requested a 'way to see everything that they have been tagged in'. 

The same applies to us

As a work around you can use the task box in front of the mention and then use "task report" macro.. 

Implementing this issue seems like a no-brainer.

Our team could really use the ability to search current sprint for @mentions in the comment section.  Multiple issues of ours in Testing have been commented on, but we have to click on each issue and scroll through to comments to find where we have been mentioned, which seems to defeat the purpose of @mentions altogether.

We assign Actions to individuals by include @ mention in the Action bullet item. I would like this filter to see all of my "Actions" across all spaces.

I just found this because we need this feature as well.

+1 very surprise that it's so hard to find a way to see a list of My Mentions or specific user's mentions

+1 We really need this too.  We have a set of pages where people are assigned different roles.  I don't care about the role at this point but I need a quick way to get a list of all pages where I am mentioned as people are expecting me to do something about them!

We could really use this feature as well.

Wait.... there's still no way to do this??? 

I would also like to have this feature to track where I've been mentioned, to not oversee anything that hasn't been tackled yet.

My company needs this too and it makes no sense that it cant be done.

I used to be able to search where I was mentioned. Now I can't. This means people who asked me or another team member a question aren't getting their answers.

Like Herbert Polzhoer likes this

On cloud instances unfortunately it is not possible do run such a query, as far as I could find out.

But you can use the REST API as follows:

https://<your site name>.atlassian.net/wiki/rest/api/content/search?cql=mention%20in%20("id:uuid")

To get the user id in that form, open the user's profile and the this id is located in the url after the /people/ part in the url.

 

You could also use the official python REST client library and initiate the same cql with the following library call:

 

confluence.cql(f'mention in ("{mention}")'01000) 

 

Here is the link to the python library's documentation: https://atlassian-python-api.readthedocs.io/confluence.html

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,399 views 7 29
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you