Forums

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

The interface /rest/internal/2/user/mention/search searched user related table too much times

yanshuai@meituan.com October 10, 2018

Hi, everyone,

what does /rest/internal/2/user/mention/search do? I found in our jira, it search user related tables in db too much times.

The interface would pass param with maxResults=10, how can I reduce the number of maxResults in search? 

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 12, 2018

When a user in Jira is writing up a description or comment on an issue, it is possible for them to start a new word with the @ symbol.  When users do this, if they have permissions to search user objects in Jira, then for each letter they type after this, the rest endpoint can be called to search for user accounts that match the letters entered.

Once the user selects the username they want, when they post this comment, it tends to send an additional notification to that mentioned user to make them aware of a particular issue in Jira.

If you have a large userbase, I could see how this could create a very large number of rest call as users search for that particular user.

So far I have not found a way to configure the maxresults returned here.   This is actually a private rest endpoint, meaning it is not publicly documented, and it can change it's behavior between Jira versions.

It might be possible to configure this by modifying the Jira source code, but compiling Jira again from source is not a trivial task.

 

How many users do you have in Jira?

What version of Jira are you using?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events