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

typeflat



Column




Example: Writing a comment to blocked issues when blocking issues are resolved

Is there any way to write a comment, for instance, "All blockers have been resolved, you may proceed with this issue", to the issue, say ABC-1234, blocked by the current issue, which is now being resolved, if ABC-1234 won't have unresolved blocking issues right after the current issue is resolved?

Yes, you can implement that behavior adding 3 post-functions to "Resolve Issue" transition in your blocker issues workflow:

Post-function Copy a parsed text to a field with the following configuration:

Image Modified


Post-function Copy a parsed text to a field with the following configuration:

Image Modified


Text to be parsed in advanced mode is:

toString(filterByPredicate(linkedIssues("blocks"),  countcount(filterByResolution(linkedIssues(^%{00015}, "is blocked by",^%{00015}),   ""))   =  10))

Note that:

  • ^%{00015} is field code for virtual field "Issue Key" in issues returned by function linkedIssues("blocks")

Post-function Write field on issues returned by JQL queryUpdate issue fields with the following configuration:

Image Modified


Once configured, transition "Resolve Issue" looks like this:


Image Modified



Other examples of that functions

Copy parsed text to a field

Incoming Links
pageCopy parsed text to a field
labelsexample



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 list
labelsexample



Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label = "issue-links"