Versions Compared

Key

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


Section


Column
width30%600px


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

Table of Contents
maxLevel1



Column




Futures

Features used to implement the example



Example: Create issue links by avoiding duplicates

This is an example for creating specific issue links between issues with the same custom field value by avoiding duplicates.

Imagine there are 3 tickets that have the same value for the custom field "Custom-ID": Ticket A, Ticket B and Ticket C. When executing the transition on Ticket A, Ticket B and C should be linked to Ticket A. When now executing the transition on Ticket B, only Ticket C should be linked to Ticket B since Ticket A was already linked in the previous transition execution. For this the Create issue link post function will be used.

The configuration will look like this:


Text to be parsed is:

key  key != %{00015} and XXXXX ~ %{nnnnn} and key not in linkedIssues(%{00015}) 

Note that:

  • %{00015} is field code for field "Issue key"
  • %{nnnnn} is field code for the custom field
  • XXXXX is the name of the custom field


Once configured, the transition will look like this:




Other examples of that function

Incoming Links
pageCreate issue link
labelsexample



Related Usage Examples

Content by Label
showSpacefalse
cqllabel in ("example","post-function","issue-links")