Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

Copy field value This post function allows you to copy field values from one or multiple issues which are returned by an issue list or a JQL query.

Field values can also be aggregated or calculated. Make sure to familiarize yourself with the JQL mode and the Issue list mode which are used to define the target list of issues to copy values from.


Image ModifiedConfiguration

UI Expand
titleTarget field

Select the target fields that will be set and the source values for each of them. The following options are available:

OptionDescription
Copy field from selected issues

The value(s) found in the issues specified in the next parameter "Issues to copy from

" will be copied to the target field as a comma separated list.

Since you are copying the values of potentially multiple issues returned by a JQL query or an issue list JWT can aggregate values, and offers additional options depending on the type of source field

Enter a JQL or an Issue list and optionally use field codes to insert field values

.

UI Text Box
type
tip

You can try your expression by clicking on the play button on the top right of the JQL expression box.

UI Expand
titleTarget field
info

Calculated values

For date and date-time fields you can additionally choose to only return the:

  • Earliest date value among those being returned.
  • Latest date value among those being returned.

For numeric fields you can automatically return the following aggregated values:

  • Sum of values: sum of all the values being returned.
  • Lowest value: minimum value among those being returned.
  • Highest value: maximum value among those being returned.
  • Average value: arithmetic mean of values being returned.

When updating the Priority field you can additionally choose to only return the:

  • Highest priority value among those being returned.
  • Lowest priority value among those being returned

Add a field to configure and select a field value. The following options are available:

Copy field value from current issue

Choose the Field the copy from
  • .


Set field value manually (parser expression)
  1. Enter the Expression

And as an additional option, you can choose Write protection to not overwrite existing values.

Set the value of the target field using an expression and optionally use field codes. The Parsing modes differ depending on the data type of the target field. 

You can either choose from the Advanced text mode or the Numeric mode.

Clear field valueChoose this option to clear the value of the target field. This option is not available for the Summary field.

Include Page
DECADIS:_snip_write_protection
DECADIS:_snip_write_protection



UI Expand
titleIssues to copy from

Enter a JQL query or an issue list and optionally use field codes to define the target list of issues the values will be copied from.

UI Text Box
typetip

Make sure to familiarize yourself with the JQL mode and the Issue list mode



ui-ui-expand
titleAdditional options

Include Page
DECADIS:_snip_update_immediately
DECADIS:_snip_update_immediately
You have the option to Update issues immediately (each field update results in a dedicated "Issue Updated" event and issue history entry).


UI Expand
iconfalse
titleConditional execution

Include Page
DECADIS:_snip_condExecution_Server
DECADIS:_snip_condExecution_Server


UI Expand
iconfalse
titleRun as

Include Page
DECADIS:_snip_runAs_Server_postFunction
DECADIS:_snip_runAs_Server_postFunction
Choose which user* will be used to execute this post function. By default it is set to the Current user.



Image ModifiedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
cqllabel = "use-case-workflow" and parent = currentContent()


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


Tech review

Status
colourYellowGreen
titleReady for reviewdone

Style guide

Status
colourGreen
titletododone

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


Page properties
hiddentrue


Short descriptionCopy the field value values from one or multiple issues returned by a JQL query or an issue list. Values can also be aggregated.
Label