Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2.6.2


Section


Column
width600px


Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1

type



Column




flat

Features used to implement the example


Warning

This example is considered outdated. Please head over to the one using our Transition issues post function here.


Example: Transition only a sub-task among several ones

Could you please advise how I can transit only first sub-task on parent issue transition.


It will require JIRA Workflow Toolbox 2.1.28 or higher. It can be done using 3 post-functions:

Copy a parsed text to a field post-function to write the name of a transition into virtual field "Ephemeral string 1" virtual field. In this example I use transition "Start Progress":

Image RemovedImage Added



Copy a parsed text to a field post-function to write the issue key of first sub-task order by a certain field into virtual field "Ephemeral string 2". In this example I order sub-tasks by creation date-time in ascending order:

Image Removed

Note that:Image Added


Text to be parsed is: toString(first(sort(subtasks(), {00009}, ASC)))


Note that:

  • {00009} is code for numeric value of field "Date and time of creation"
  • We are using advanced parsing mode


Write field on issues returned by JQL query or issue listUpdate issue fields post-function for copying the name of the transition in "Ephemeral field 1" into virtual field "Execute transition" of issue whose key is in "Ephemeral field 2":

Image Added


Text to be parsed is: 

Image Removed

issuekey in ("%{00062}")


Note that:

  • %{00062} is field code for "Ephemeral string 2"
  • JQL query used is: issuekey in ("%{00062}")


Once transition is configured, it will look like this:

Image RemovedImage Added



Other examples of that functions

Write field on issues returned by JQL query or issue listUpdate issue fields

Incoming Links
pageWrite field on issues returned by JQL query or issue listUpdate issue fields
labelsexample




Copy parsed text to a field

Incoming Links
pageCopy parsed text to a field
labelsexample



Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label in ("sub-task","transition")