Forums

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

Function projectsLeadByUser - user does not exist error

Deleted user August 26, 2024

Hello,

we migrated to Jira Cloud and the filters using the function projectLeadByUser aren't working anymore. We were using simple filters like:

 

project in projectsLeadByUser("name.surname@company.com") AND issuetype in (Incident)

Now we receive the following error:

 

Function 'projectsLeadByUser' can not generate a list of projects for user 'name.surname@company.com'; the user does not exist.

The Service Desk boards still have the correct Lead (owner of the board) listed but it looks like the filter can't retrieve the user anymore. 

Is there any difference on how projectLeadByUser function work on Jira Cloud? Can please someone help with this issue? Thanks.

 

1 answer

1 vote
Walter Buggenhout
Community Champion
August 26, 2024

Hi @[deleted] and welcome to the Community!

Yes, unfortunately this does work differently on cloud. A user in cloud is represented by a long hash of letters and numbers. If you select your avatar in the top right corner of your Jira screen and then click "profile", you will see this hash in the url in your browser. It is the long string that follows

https://<your site name>.atlassian.net/jira/people/

If you paste that long string in your projectsLeadByUser() function instead of the user name or email address, you should get results.

So it's a matter to retrieve the actual account id's for the project leads you need and then adjusting your filters, I'm afraid.

Hope this helps!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events