Forums

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

unable to execute projectsLeadByUser() in JQL

Janice Castro
Contributor
April 26, 2022

Trying to execute the advanced function where I specify a specific project lead (not myself)

When I use full name in quotes or email in quotes, the JQL executes but says no user exists for the email or name.

On our instance, the username always resolves to a GUID value but using this in the JQL returns the error:

A value provided by the function 'projectsLeadByUser' is invalid for the field 'project'.

 

project in projectsLeadByUser("557058:569b17ea-c4e4-40ab-9509-7cba72a47a79")

 

what am I missing?

 

2 answers

1 accepted

0 votes
Answer accepted
Janice Castro
Contributor
April 29, 2022

I reported the issue to Atlassian support. It turns out that this is a known issue with users who are Project Leads on an Archived project.

https://jira.atlassian.com/browse/JRACLOUD-78152

As to why the UID looks weird, I have no idea.

0 votes
Sam Bartolome
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 27, 2022

Hi @Janice Castro ,

Welcome to the Atlassian Community,

The GUID doesn't seem to match the pattern of my users as in my instance there is no colon, neither dashes, only hexadecimal 

Janice Castro
Contributor
April 27, 2022

I don't know what to tell you. When I try other fields in the JQL it comes up like that and executes

and reporter = 557058:569b17ea-c4e4-40ab-9509-7cba72a47a79

when i type in the name and select the user from the auto drop-down, it automatically converts it to that format. even when I look up the user under People, the url reflects the same

jira/people/557058:569b17ea-c4e4-40ab-9509-7cba72a47a79

Sam Bartolome
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 28, 2022

The user management should show something like 

users/5bc0988553dc9c5087ee000d

when you click on a user's account and then use the last part.

Maybe it is the type of user provisioning which then differs

Janice Castro
Contributor
April 28, 2022

I checked user management and it shows the same thing:

/users/557058:569b17ea-c4e4-40ab-9509-7cba72a47a79

still, even if it didn't, not everyone is a site manager so needing to look up a user's account via user management is not a solution

Suggest an answer

Log in or Sign up to answer