We need to make a dashboard displaying below two values
Epic Name No of stories created under Epic
Please help us to count the stories. We are not able to find any plugin so far so may be script needs to be written. Please help!
Hi,
You can also try this app - https://marketplace.atlassian.com/apps/1219429/status-progress-report-gadget-for-jira
You would need to enter JQL such as - "Epic Link" = "name of your epic" and type = story
Thanks, Raimundas... and appreciate your efforts on the creation of such a good plugin.
But 'Status & Progress Report Gadget for Jira' is only available for Cloud version not for Self-hosted server version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You would need an add-on for it.
You could also use the Power Custom Fields Premium add-on:
You could create a SIL custom field with a script like this:
return size(allLinkedIssues(key, "Epic-Story Link"));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have scriptrunner, just create a Scripted Field.
The script should look like
IssueLinkManager issueLinkManager = ComponentAccessor.getIssueLinkManager()
Integer stories = 0
issueLinkManager.getOutwardLinks(issue.getId()).each {epicLink ->
if (epicLink.getIssueLinkType().getName() == "Epic-Story Link") {
Issue epicLinkedIssue = epicLink.getDestinationObject()
String liIssueType = epicLinkedIssue.getIssueType().getName()
if (liIssueType == "Story") {
stories+=1
}
}
}
return stories.toDouble()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Issue epicLinkedIssue = epicLink.getDestinationObject()
epicLinkedIssue is not acceptable in code by Script runner Script field?
Any suggestion?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean with "...is not acceptable..." ???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
While creating a Script field using Scriptrunner... its giving red indicator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just add the line
import com.atlassian.jira.issue.Issue
at the beginning of your script ? (that's just very basic groovy knowledge …)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.