Futures 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 because Ticket A was 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 != %{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
- Automatically create an issue link after issue creation on email by "Enterprise Mail Handler for Jira" app
- Create issue links based on a custom field value avoiding duplicates
- Creating issue links to issues with the same "Summary"
- Parse description for creating issue links
- Replace certain issue link types with different ones