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


Prerequisites

UI Steps


UI Step
Create a custom Number Field called Customer Prioritization and add it to the Create/View/Edit screens,


UI Step

Create a new global reflexive transition (from any issues to itself) and add it a custom screen that includes the Customer Prioritization field.






Configuration


UI Steps



UI Step

Add an Update or copy field values post function to the Create transition in the second position.

UI Steps


UI Step

Target issue*

Select Set target issues manually (parser expression) and add the following expression:

Code Block
languagebash
linenumberstrue
issuesFromJQL("issuekey != " + %{00015} + " and \"Customer Prioritization\" >= " + {nnnnn} + " order by \"Customer Prioritization\" ASC")


UI Text Box
typeinfo

This expression will select all of the existing issues whose Customer Prioritization field value is greater than or equal to the existing one excluding the one from the current issue.



UI Step

Field*

Select the Customer Prioritization field and add the following expression.

Code Block
languagebash
linenumberstrue
{nnnnn} + indexOf(^%{00015}, issuesFromJQL("issuekey != " + %{00015} + " and \"Customer Prioritization\" >= " + {nnnnn} + " order by \"Customer Prioritization\" ASC"))


UI Text Box
typeinfo
This expression will add to the number introduced in the screen for Customer Prioritization the index of the issues in the issue list obtained before in every of the issues according to the issue list in the Target issue field.



UI Step

Conditional execution

.


Code Block
languagebash
linenumberstrue
%{nnnnn} !=  null


UI Text Box
typeinfo
The post function will only be executed if the field has a value.







UI Step

Add an Update or copy field values post function to global reflexive transition previously created.

UI Steps


UI Step

Target issue*

Select Set target issues manually (parser expression) and add the following expression:

Code Block
languagebash
linenumberstrue
(previousValue({nnnnn}) = null ? issuesFromJQL("issuekey != " + %{00015} + " and \"Customer Prioritization\" >= " + {nnnnn} + " order by \"Customer Prioritization\" ASC") : ({nnnnn} < previousValue({nnnnn}) ? issuesFromJQL("issuekey != " + %{00015} + " and \"Customer Prioritization\" >= " + {nnnnn} + " and \"Customer Prioritization\" <= " + previousValue({nnnnn}) + " order by \"Customer Prioritization\" ASC") : issuesFromJQL("issuekey != " + %{00015} + " and \"Customer Prioritization\" >= " + previousValue({nnnnn}) + " and \"Customer Prioritization\" <= " + {nnnnn} + " order by \"Customer Prioritization\" DESC")))


UI Text Box
typeinfo




UI Step

Field*

Select the Customer Prioritization field and add the following expression.

Code Block
languagebash
linenumberstrue
(previousValue({nnnnn}) = null ? {nnnnn} + indexOf(^%{00015}, issuesFromJQL("issuekey != " + %{00015} + " and \"Customer Prioritization\" >= " + {nnnnn} + " order by \"Customer Prioritization\"")) : ({nnnnn} < previousValue({nnnnn}) ? ^{nnnnn} + 1 : ^{nnnnn} - 1))


UI Text Box
typeinfo










Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature
Workflow function

Parser functions
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


...