Forums

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

Adding Label on Linked Ticket (Copying from Trigger Issue)?

Kirby Knight
Contributor
October 31, 2018

We've spent way too much time trying to figure this out. Scenario:

  1. A ticket is created
  2. Automation creates linked tickets
  3. We have a branch "For All Created Tickets" that copies Description, Attachment, plus code that copies a custom field (facility) to the linked ticket. In this same step we also added the Labels field, set to copy from the trigger issue.
  4. Description, Attachment, and Facility all copy over as expected, but Labels does not.

We've tried so many different variants on trying to get this to work, but nothing has.

Possibly relevant information: we have another automation rule (using the built-in automation, not this plug-in) that automatically applies a label on every ticket, based on the facility entered in the ticket. We thought perhaps that not including labels in the above automation might allow the new linked ticket to pick up a label based on the facility being copied over in step 3 above, but that didn't work either.

We're at our wits end trying to get this to work. Any ideas? If you need more info from me, please just ask.

Thanks,
Kirby

3 answers

0 votes
Kirby Knight
Contributor
November 5, 2018

Hi @[deleted]: Did my response provide you with enough information? Is the known bug what's happening here?

Deleted user November 14, 2018

Hi Kirby,

What trigger are you using for this rule, is it issue transitioned? It looks like earlier in the rule you're creating an issue, is that correct?

And are any other rules being triggered by this rule?

Kirby Knight
Contributor
November 15, 2018

Here are all the steps:

  1. Rule runs when an issue is created where the JQL matches a particular request type
  2. Then Edit issue fields (edits a custom field)
  3. And Create a new ticket of a particular issue type
  4. Adds a comment to the original ticket about creating the linked ticket
  5. For all created issues: Edit issue fields (copy description and attachment from Trigger issue) plus in the Additional fields box it updates a custom field, copied from the Trigger issue
  6. Adds a comment to the new ticket
  7. For all created issues, if issue matches JQL, Edit issue fields (a custom field)
  8. For all created issues, Then Edit issue fields (labels, copied from Trigger issue)

Everything works as desired except the final step. We also tried adding the label field to step 5 and copy from Trigger issue there, but that didn't work either.

Basically, we're able to copy all information we need from the Trigger issue except for labels.

Deleted user November 15, 2018

Hi Kirby,

Could you please raise a support ticket for this, it will make it easier for us to assist you. Thanks for the update. An Issue Created trigger is still dealing with a transition so it could be this bug. Can you reproduce the issue and then restart your jira instance? If the label appears on the restart then it is the bug I mentioned. If you can update us on this test in a support ticket that would be great.

Cheers,
Simeon.

0 votes
Kirby Knight
Contributor
November 1, 2018

Hi Simeon,

Below is a composite screenshot of the step in question. It's one of many variants we've tried to get it to work, but it was our original approach. The top image is what shows in the long list of steps, and the bottom image is the selections I made for the Edit issue fields part. Let me know if you need anything more to make it clearer.

Thanks,
Kirby

Service Desk Labels.png

0 votes
Deleted user October 31, 2018

Hi Kirby,

We have a known bug in Jira, AUT-1107, which it sounds like you're running into. I cannot be certain without seeing your rule however. If you are able to post a screenshot of the rule or raise a support case and provide it in there I can tell you for certain.

Cheers,

Simeon [Automation for Jira]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events