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 a default user for a project role with JWT project properties and assign the transitioned issue to him.


Prerequisites

UI Expand
titleSet up custom fieldsthe default user


UI Steps


UI Step

Add the user that you need to set as default user for a project role to a role in the project of your choice.

In our case, we will set the user user.one to the project role Developer Developers in the CASE project.


UI Step

Create a multi-line text custom field

Name: Current status

UI Step

Create a multi-line text custom field

Name: Status History

UI Step

Go to the Field configuration and set the renderer of the 3 custom fields to "Wiki Style Renderer".

UI Expand
titleSet up workflow validator

Edit the project description in the project details and add a JWT project property with the default user for the project role as in the following example.

Code Block
languagebash
linenumberstrue
{Developers=user.one}

The property key (first term) must be the name of the project role and the property value (second term) must be the username of the default member of the project role.

UI Steps
UI Step

Add to the newly created transition the Fields required or changed validator.

UI Step
UI Step

Once set up, the validator should look something like this:

SCREENSHOT




Configuration

UI Steps


Target issue*

Choose Current issue
UI Step




UI Step

Current Status field

UI Steps


UI Step

Field*

Choose Current Status


UI Step

Expression*

Set it to Advanced and use the following expression

Code Block
linenumberstrue
"*" + dateTimeToString({system.currentDateTime}, "yyyy-MM-dd", USER_LANG) + "* - *" + %{system.currentUserFullName} + "*\n" + %{issue.cfnnnnn}


UI Text Box

%{issue.cfnnnnn} is the field code for the field Status Update






UI Expand
titleAnother step


UI Steps


UI Step



UI Step



UI Step






Screenshots



Screencast



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