Forums

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

How to get user names in function componentsLeadByUser()

Robert
Contributor
February 7, 2020

Hello!

I'm trying to create a filter to list issues for a given component lead. This is possible with the function componentsLeadByUser(), but I'm unable to refer to any users here. As I'm using cloud, maybe the new GDPR changes has effect in place... So I tried typing a name, or enter in various formats ("xxx.yyy", xxx.yyy, xxx, xxx yyy) ant I keep getting error only: 

can not generate a list of components for user .....; the user does not exist.

There is no auto complete option here, so I'm lost.

1 answer

1 accepted

0 votes
Answer accepted
Ste Wright
Community Champion
February 7, 2020

Hi @Robert

I found a workaround that does work:

  1. Go to an issue and @ mention a user
  2. Copy from the text which appears the long account id - this is the text between the colon and the end square bracket - i.e accountid:THE CODE HERE]
  3. Copy this account id into the search - i.e...component in componentsLeadByUser("THE CODE HERE")

^ This can replace the username :)

Ste

Robert
Contributor
February 10, 2020

Hello @Ste Wright !

I tried it, and even I remember the code should appear nowadays, it is not. Mentioning a user is working in the old way again for me, so the code is gone... Looks like this GDPR change is rolling out and back..

But! Mentioning a user in the Description field now works as expected. So the trick you suggested is working, (a bit complicated, not really user friendly). I think I will suggest a change to Atlassian.

Like Ste Wright likes this
Gus Irisa August 1, 2020

Hey @Ste Wright . I tried to do this with the cloud version today but I think that this workaround doesn't work anymore. I can't see a text within the colon and square bracket. Just the username. Do you know any other option? Thanks mate

Gus Irisa August 1, 2020

I just figured out another workaround. Just use the basic search issues feature, select the user in assignee and switch to JQL and voila, the long code is there

Ste Wright
Community Champion
August 1, 2020

Hi @Gus Irisa 

That is another workaround :) - but the @ mention version still works.

You need to ensure when you @ mention the user, you click to select them. Once you do, their name and Account ID will appear in the text box.

You could also just go into JQL, enter assignee = <User Here> and when you select their name, it'll also bring up the Account ID.

Lots of options!

Ste

Suggest an answer

Log in or Sign up to answer