Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy/clone specifically linked tickets to child ticket?

Drew C January 7, 2022

Hi All - 

 

I have an odd request for help.

Scenario:

Bug ticket gets created (Ticket A)

Wrapper ticket gets created that then houses Ticket A along with other relevant bug tickets (Ticket B)

Once Ticket B gets to a specific status, a built in automation job activates to clone Ticket B into a different project (Ticket C) in which the work to fix the specific bug on a specific environment and version gets assigned to the specific group needing to do the work. Currently, the automation task is setup to when it clones from B -> C, it sets the link to "Child ticket of..". Ticket C currently has no visibility to Ticket A

 

Question:

Is there a post function or automation component available to link Ticket A to ticket C upon ticket C's creation?

1 answer

0 votes
Kseniia Trushnikova
Community Champion
October 28, 2022

Hi Drew,

Try this out:

Example rule.png

  1. Add Linked Issues field to the action you're using to clone ticket B and choose Copy Linked Issues from Current issue. This will link all the issues linked the ticket B to the ticket C.
  2. To add a link between the ticket B and the ticket C use JSON in More options > Additional fields:
    {
       "update": {
          "issuelinks": [
             {
                "add": {
                   "type": {
                      "name": "Parent-Child"
                   },
                   "outwardIssue": {
                      "key": "{{issue.key}}"
                   }
                }
             }
          ]
       }
    }
    The link type name may differs.

Please let me know if it works for you.

Suggest an answer

Log in or Sign up to answer