Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Generate automatically a link to a JQL query that searches for issues based on information obtained from the current issue.


Configuration

UI Steps


UI Step

Create a new Calculated Text Field (by JWT) custom field and name it properly.

UI Text Box
typetip

Providing a description will help you to identify what the custom field does but this step is optional.



UI Step

Parsing mode

Set the Parsing Mode to Basic text


UI Step

Parser expression

Add the following expression:

Code Block
languagebash
linenumberstrue
<a href="%{system.baseUrl}/issues/?jql=project=%{issue.project.key} and summary ~ '%{issue.summary}'"> JQL query for %{issue.key}</a>


UI Text Box
typeinfo

This expression generates a query that retrieves issues in the same project and with the same summary as the current issue. Note that some special characters are not supported in this query.


UI Expand
expandedtrue
titleVariant for single choice fields

UI Text Box
typenote

This expression requires the replacement of the field code %{issue.cf10602} and the name of the Select List (single choice) field with the appropriate ones.


Code Block
languagebash
linenumberstrue
<a href="%{system.baseUrl}/issues/?jql=project=%{issue.project.key} and 'Select List (single choice)' = '%{issue.cf10602}'"> JQL query for %{issue.key}</a>


UI Text Box
typeinfo

This expression generates a query that retrieves issues in the same project and with the same option in a Select List (single choice) field as the current issue. Note that some special characters are not supported in this query.



true
UI Expand
expanded
titleVariant for multiple choice fields


UI Text Box
typenote

This expression requires the Advanced text parsing mode and the replacement of the field code %{issue.cf10602} and the name of the Select List (multiple choices) field with the appropriate ones.


Code Block
languagebash
linenumberstrue
"<a href=\"" + %{system.baseUrl} + "/issues/?jql=project=" + %{issue.project.key} + " and 'Select List (multiple choices)' in (" + toString(textOnStringList(toStringList(%{issue.cf10602}), "'" + %{seed.text} + "'")) + ")\"> JQL query for "+ %{issue.key} + "</a>"


UI Text Box
typeinfo

This expression generates a query that retrieves issues in the same project and with the same options in a Select List (multiple choices) field as the current issue. Note that some special characters are not supported in this query.




UI Step

Add the field to the relevant view screens.


UI Text Box
typenote

Remember: All calculated fields are read-only and cannot be manually updated on a create or edit screen.









Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "calculated-field" and ancestor = "27066671"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Field type
Parser functions

toString()

textOnStringList()

toStringList()

Label




Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged