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

Your Points Tracker
  • 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
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?
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

How to pull in Parent/Epic value when a bug is linked to an issue as "Blocks"

We use a Celigo integration to create time entries in NetSuite from work logs in Jira via a custom field containing a NetSuite task ID within an epic; when work is logged on an issue associated to that epic it gets picked up by the integration and sent to NetSuite. In order for that to work, all issues must be associated to an epic, which is where things get sticky. 

Next-Gen Jira projects can only have one child issue type, which is used for sub-tasks, which means that Bugs are a standard issue type instead. When a bug needs to be created, the reporter of a bug links the bug to the issue that they were testing, but they almost never attach an epic to the Bug. Then when time is logged on a bug without an epic link it creates an error in Celigo and the time entry is not created in NetSuite.

In order to get around this, I've created an automation rule to look for the parent/epic of the linked issue and apply it to the bug:

When an issue without epic is linked, adopt the parent link from original issue.png

It works great when the link type is "Relates to", but when a bug is linked to an issue as "Blocks" it reverses the direction of the link relationship so that the Bug is the Current Issue instead of the Destination Issue. I can't seem to come up with an automation rule that pulls the parent from the Current issue instead, and I've tried everything I can think of. Jira offers no way to use a smart value to find the issue link. Also, there is something funky with the way next-gen projects use parent vs epic links, and so attempts to do the same rule using the Current Issue as the branch criteria fails with this error: "No fields or field values to edit for issues (could be due to some field values not existing in a given project):"

As a stop-gap measure I had to create a rule that copies all of the issue links from the destination issue over to the bug as the issue link type "Related to", which then runs the original rule and applies the epic link, but it's messy and could easily cause the wrong epic to be linked. I've also considered 

Has anyone else had this issue, or can anyone think of a cleaner solution?

1 answer

Hi @Lissa Meade 

Have you tried instead checking the linking of "is blocked by" in the trigger?  That would indicate the issue blocked by the bug as the trigger issue.

And, I believe that Team-Managed (next-gen) projects use parent rather than epic link for that relationship.  Take a look at using that to access the epic.

Best regards,


Oops... My bad: you cannot check that in the trigger as the "blocks" and "is blocked by" are tested at once.  Instead you would add an advanced compare condition for the last added link after a generic linked trigger.

checking for is blocked by.PNG

By the way, the method to find the names of the smart values which are not listed on the documentation pages is described here:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

120 views 7 10
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