Is it possible to add a filter module on the incident screen

We'd like to have a module on a incident screen that automatically searches for other incidents with similar text as the name of this incident. 

Here's an image of the incident screen we have right now:


Here's an image of the filter we'd like to have in the incident report: (notice the keyword "test" in all the summaries below, This is because the filter automatically searched for the phrase "this is a test" or any part of that phrase ideally).


Is there any way to add this kind of module to the incident page in Jira?

We don't have JIRA service desk, does it does it have this functionality?

1 answer

1 accepted

You ca create a scripted custom field (Script Runner) which will display the result of running a JQL query similar to "summary ~ ${issue.summary}"

the script field code is similar to 

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.fields.CustomField
import com.atlassian.jira.jql.parser.JqlQueryParser
import com.atlassian.jira.web.bean.PagerFilter;
def getSimilarIssues(Issue issue) {
	def customFieldManager = ComponentAccessor.getCustomFieldManager()
	def jql = /summary ~ $issue.summary AND issue NOT IN (${issue.key})/  
	SearchService ss = ComponentAccessor.getComponent(SearchService)
	JqlQueryParser parser = ComponentAccessor.getComponent(JqlQueryParser)
	def result =, parser.parseQuery(jql), PagerFilter.getUnlimitedFilter())
		<a class="issue-link" data-issue-key="${it.key}" href="/browse/$it.key" id="key-val" rel="$">$it.key</a>
	}).join(' , ')

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

85 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you