Versions Compared

Key

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


Panel

On this page

Table of Contents
exclude(On this page).*
stylecircle
typeflat
separatorpipe



Check whether

the parent of the current issue is of a certain issue type.

This is particularly important if you want to reuse a workflow for multiple sub-task issue types but only want a transition to be available if the sub-task belongs to a certain user story or a bug.

This use case is valid for

both 

both conditions and validators. The only difference is that you can specify an additional error message when using a validator.

UI Text Box
sizemedium
typeinfo

Use case

Check whether

Panel
borderColor#1b878f
titleColor#1b878f
titleBGColorwhite
titleUse case details
Page properties
Function
Type
Use case description
Complexity

Status
colourGrey
titleintermediate


Configuration

Image RemovedConfiguration steps

Definition of basic (required) parameters

ParameterValue(s) / Steps to set value(s)Notes
UI Steps


UI Step

Jira expression*

Code Block
linenumberstrue
issue.parent != null && (issue.parent.issueType.name == "Story")

This expression makes sure that:

  1. the current issue has a parent (
(lightbulb)
  1. only
works
  1. for sub-tasks)
  2. the parent is a Story


UI Step


UI Steps

Variations

You can easily modify this use case to check for specific statuses.

ParameterValue(s) / Steps to set value(s)Notes
UI Step

Jira expression*

Code Block
linenumberstrue
issue.parent != null && (issue.parent.issueType.name == "Bug") 
&& ((issue.parent.status == "To Do"))

This expression makes sure that:

  1. the parent is a Bug
  2. the Bug is still in
the 
  1. the
    Status
    subtletrue
    titleto do
    status


UI Step

Jira expression*

Code Block
linenumberstrue
issue.parent != null && (issue.parent.issueType.name == "Bug") 
&& ((issue.parent.resolution != null))

This expression makes sure that:

  1. the parent is a Bug
  2. the Bug is still unresolved.





Image Added Related examples

Page properties report
firstcolumnUse case
headings

Type

JWT feature,

Function

Workflow function, Use case description, Complexity
sortByTitle
cqllabel = "use-case" and label = "jira_expression" and space = currentSpace()

and parent = "22545465"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Image AddedImage Added

Workflow function

Jira expression condition

Jira expression validator

Use case description

Check whether the parent of the current issue is of a certain issue type.

This is particularly important if you want to reuse a workflow for multiple sub-task issue types but only want a transition to be available if the sub-task belongs to a certain user story or a bug.

This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator.

Complexity

Status
colourGrey
titleintermediate