Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Hide Transition based on the presence of Linked Issues


Hello Team,

I have a transition (Create a Defect) at two Statuses called 'Step 1' and 'Step 2' in the workflow.

At Step 1, When I click on Create a Defect, a linked issue gets created. 

When I reach the Step 2 status, I should not see "Create a Defect" transition as I already have a linked issue present in the ticket.

I wanted to hide/unhide the transition based on the presence of linked issue in the current issue.


We use JWT, ScriptRunner plug-ins.


Please help me in this regard.




1 answer

1 accepted

0 votes
Answer accepted
Tansu Akdeniz Community Leader Jul 28, 2022

Hi @Sriharsha 

Welcome to the community.

You can add a simple script condition via Script Runner. There are sample scripts in that page. For ex; linked issue condition: 


Or you can add JQL condition by using issueFunction not in hasLinks() query.


You're welcome!! 

Hello @Tansu Akdeniz , 

hope you are doing well!

It is working as expected.

But I have another scenario in the same workflow, where at a later status, when I click a transition button in the ticket, it goes back to the previous status and again I can see "Create A Defect" button.

Once a linked issue is created, I should not see no matter how many times I come back to the previous status.

Can you pls suggest?


Thank you!

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events