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:
Capture1.PNG
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).
Capture2.PNG
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?
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.bc.issue.search.SearchService; 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 = ss.search(issue.reporterUser, parser.parseQuery(jql), PagerFilter.getUnlimitedFilter()) result.issues.collect({ """ <a class="issue-link" data-issue-key="${it.key}" href="/browse/$it.key" id="key-val" rel="$it.id">$it.key</a> """ }).join(' , ') } getSimilarIssues(issue)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.