You can create a Script Runner Scripted Field.
The script for the field will look like:
import com.atlassian.jira.component.ComponentAccessor a = ComponentAccessor.getIssueLinkManager().getLinkCollection(issue, issue.reporter).getAllIssues().size() a.toString()
More info on scripted fields:
Hi Thuy Mai,
Try Database Value plugin and
https://answers.atlassian.com/questions/215718/scripted-field-to-return-number-of-cloned-issues-not-workingscripted field will help you most rather than DB value plugin.
I think its little bit closer to your requirement.
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