If you create a filter that displays stories, you can add a column to the filter that displays a field called Sub-Tasks. Here's a sample:
Is there a similar field that would display a list of stories in an epic? I know I can set my jql to pull in all stories as line items, but I have a few users who just want to see the epics as line items, with a single column for each displaying a comma-delimited list of the stories in each epic.
If that doesn't already exist, is there a way to create a computed field that would provide this functionality?
You can use Adaptivist ScriptRunner plugin to create a scripted field with the required functionality. There are other plugins also available which allow you to create scripted fields
OK, I'm surprised there isn't native functionality for this, but I created a custom scripted field. I was able to get the list of issue keys by using the code in the accepted answer here, but it's just a text field. Is there any way to make the results links, as in the Sub-Tasks field shown in my OP?
Here's the code from the linked answer:
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.fugue.Option if(issue.issueType.name=="Epic") { def epic = (Option)Option.option(issue) def epicLinkManagerImpl = getBean("epicLinkManagerImpl"); issuesInEpic = epicLinkManagerImpl.getIssuesInEpic(issue) return issuesInEpic.toString() } return null //Method to get the greenhopper bean instance def getBean(String beanId) { def ghPlugin = ComponentAccessor.getPluginAccessor().getEnabledPlugin("com.pyxis.greenhopper.jira") def descriptor = ghPlugin.getModuleDescriptor("greenhopper-launcher") def applicationContext = descriptor.getModule().greenHopperCacheManager.applicationContext def beanInstance = applicationContext.getBean(beanId) return beanInstance; }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use HTML Template and return a string as html. You can read more here:
https://scriptrunner.adaptavist.com/latest/jira/scripted-fields.html#_getting_started
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By the way, you did a great job. You wrote the script very fast.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't take credit for the script; I stole it from the post I linked to in my previous post. :)
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.