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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How is this issue form made

I've written an issue form submission plugin that look almost like this atlassian "Ask a question" form that I've used to submit this question. I am trying not to reinvent the wheel and so I am curious how forms such as these are typically made, whereby the search bar looks up similar issues for you to select before creating a new issue?


In particular, I'm wondering how does the backend to this form search for similar issues and documents? The way I am currently doing it is it removes mundane words like "with", "his" and reserved JQL words like "distinct" until what are left are just "keyword" words the user input and then perform a JQL query finding issues with similar summaries.


For instance, if the user typed in "keyword1 with keyword2 and keyword3" the resulting portion of the JQL for finding similar issues would look like:

`summary ~ keyword1 OR summary ~ keyword2 OR summary ~ keyword3`


Is that effectively how it is done for this form or forms like it that others may have created? Or are there much better approaches I'm missing? For instance I see Atlaskit supports a [Global Search]( component. Is global search what is being used under the covers? The docs show you need a cloudId prop, or can this be used for Jira DataCenter too?


Again, I have a working prototype but I'm just curious how others solve this issue and what the best practices are. Thank you

1 answer

0 votes
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 24, 2021

Hey there - I don't know about the backend, but in researching this answer I snooped around using the Network tab of Chrome Developer tools to see what calls were being made during a KB article lookup.

As I recall, there was some live processing of whatever I typed and it would continue adding to the query as I typed:

So I took a look just now and if I type very slowly, it sends a query for partial words.

So at least on the client side, it's not smart enough to remove mundane words like "a", or "the", nor is it even waiting until I hit the spacebar or any punctuation characters. So that seems a little inefficient.

On the other hand, the backend returns results pretty quickly. Now this is for querying the knowledgebase in Confluence, not Jira, so it's possible that it maintains an index or has code that is better suited for natural language searches like this.

Anyways, hope this helps.

Cool, that is some nice information about things to keep in mind on frontend. I too am thinking it'd be good to have a delay mechanic so you aren't just firing off a request for each and every character.


But my question is more on the backend. Is JQL the way I'm applying it make sense? Be interested to hear from others tricks of the trade. I've also been thinking using labels on issues for certain keywords would make a better search criteria than summary text to avoid misspellings, etc.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events