Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation Rule Linked Issue created from task in project A & linked issue created in Project B

I have two projects - Project A and B.  Support Issues are created as Tasks in Project A.  Bug Issue Types are then created from the Task in Project A using the "Create linked issue" link and the linked issue is then created in Project B.

I need to add an automation rule that auto populates a field with a value.  I need the rule to only apply to issues created as linked issues from Project A, where the linked issue is created in Project B.

Is this possible and if so, how would I do it?

1 answer

1 accepted

3 votes
Answer accepted

Hi Paul,

If I understand correctly you need an automation rule to populate a field with a certain value to the Bug ticket in Project B, each time a new Bug ticket is created in Project B and that is linked to a Task issue from Project A.

You could use an automation rule that is triggered by "Issue Linked".

Capture1.PNG 

Regards,

Ioana

Hi Ioana, thank you for your help and the quick reply.  You have definitely set me on the right path, but I can't quite get the JQL for the "Linked Issue Matches" to work.  Please can you share the actual JQL code.  As you can see from the screenshot below, I'm not sure what to put at the start of the JQL. 

image.png

Hi Paul,

I will explain it step by step.

1. Trigger

  • Use "Issue Linked" for your trigger
  • Make sure to select the correct Link Type. You should see a drop-down as below, where you can select the link type you are interested in.
  • For my example below I selected "Problem/Incident" link type that I have in Jira as this link type has the "causes" and "caused by" relations. 

Trigger: 1.PNG

2. First Condition:

  • Now you want to make sure that the automation rule only runs for tickets with issuetype Bug that are in the DEV project
  • For that you can use a JQL condition to make sure the rule applies only to your project-issuetype combination

2.PNG

3. Second condition:

  • You now also want to make sure that your rule runs only for tickets that have been linked to a ticket that match the following criteria:
    • issuetype "Software Development"
    • project "ICE"
    • linked with Link Type relation "causes"
  • For that use the "Related issues condition", as you want to check that the linked ticket of your Bug matches the criteria
  • Select Linked Issues under Related issues
  • Link Type should be "causes" (the outward relation)  and not "is caused by". As you are now checking the linked ticket and not the bug ticket. 
  • Condition should be that All match specified JQL
  • THe Matching JQL should simply be the JQL to check project - issuetype combination from your initial project.  

3.PNG

4. And last step of course, would be to and an action.

Regards,

Ioana

Like Vikrant Yadav likes this

Thank you Ioana for your excellent detailed instructions.  I have now setup the rule successfully.  Your help is most appreciated.

If anyone else encounters this issue, I had to set the rule to run across both project A & B in order to get it to work.

Regards,

Paul

Like Ioana likes this

You are welcome. I am glad you made it work!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

☕️ Monday coffee with Jexo: Weekly Atlassian news roundup | 21st June 2021

Hi community 👋, as every Monday we're bringing you a quick update on what happened in the Atlassian ecosystem last week. There were a few interesting events like for example the announcement of th...

29 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you