You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
So JIRA has a built in panel for displaying issue links: however these links need to be manually created.
I'd like to use ScriptRunner's Web Panel fragment to generate the exact same type of table except that its results are populated by any/all issues that have any/all of the current issue's labels.
How can I do this?
i know it is an old topic, but did you manage to solve it? if so can you help me out pls, i wanna get all issues with same labels and count them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, I think I have the basic starting point out, but I need to know how to:
1) Search for issues
2) Iterate through the results
import com.atlassian.jira.issue.Issue def issue = context.issue as Issue def key = issue.key def summary = issue.summary def labels = issue.getLabels()*.label writer.write("<table class='aui'>" + "<thead>" + "<tr>" + "<th>Key</th>" + "<th>Summary</th>" + "<th>Labels</th>" + "</tr>" + "</thead>" + "<tbody>" + "<tr>" + "<td>" + key + "</td>" + "<td>" + summary + "</td>" + "<td>" + labels + "</td>" + "</tr>" + "</tbody>" + "</table>")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.