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

Set the last assignee in a given status as assignee in a posterior transition.

This use case requires the implementation of two Update or copy field values post functions in two different transitions.



Prerequisites

UI Expand
titleSet up a custom field


UI Steps


UI Step

Create a User Picker (single user) custom field and name it Last Assignee In Status


UI Step

Restrict its context to the desired projects.

UI Text Box
typewarning

Do not add it to any screen! It will be used internally.






Configuration

UI Steps


UI Step

Add the Update or copy field values post function to the transition or transitions that leave the status in question.

UI Steps


UI Step

Target issue

Choose Current issue


UI Step

Field

Choose Last Assignee In Status


UI Step

Value

Choose Set field value manually


UI Step

Expression

Use the following expression with the expression editor in Advanced text mode.

Code Block
languagebash
linenumberstrue
previousValue(%{issue.assignee})


UI Text Box
typenote

This expression will be only valid if there changing the assignee is required in this transition.

If it is not required to change the assignee, use the following expression instead.

Code Block
languagebash
linenumberstrue
%{issue.assignee}






UI Step

Add the Update or copy field values post function to a posterior transition.


UI Steps


UI Step

Target issue

Choose Current issue


UI Step

Value

Choose Copy field value from current issue


UI Step

Field

Select Last Assignee In Status


UI Step

Conditional execution

Restrict the usage of the post function with the following conditional execution. Replace the field code with the appropriate one for the field Last Assignee In Status before using it.

Code Block
languagebash
linenumberstrue
%{issue.cfLastAssigneeInStatus} != ""







Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel in ("use-case-workflow","parser_func_previousvalue") and ancestor = "27067093"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Update or copy field values

Parser functionspreviousValue()
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