I want to be able to use this custom field to filter through issues with the Confluence Jira Issue macro by sprint goal. I know that this isn't available out of the box because the developers explicitly chose to separate the sprint goals field from it's issues completely ( https://jira.atlassian.com/browse/JSWSERVER-7308 - "[The sprint goal field] would be independent of the work being done on the Issues, and only linked to the Sprint as a whole."). I was wondering if there was a way I could set up a custom field for issues that automatically pulls from its sprint's sprint goal field.
Yeah. I'm hoping there's someway they could be related. Do you think it's possible to connect the two with the programming a Jira app? I tried looking at their tutorials and I think it's possible but I don't think their tutorials are going to get me anywhere close to being able to do that.
Well, potentially (potentially 😋) you could do this with ScriptRunner. On issue creation/update you could look into the sprint value and the make the appropriate requests to grab the Sprint goal and add it to the custom field :)
For future reference for anyone wanting to do the same... It's a very technical, code-heavy solution
You need Scriptrunner for this. With Scriptrunner, you can write two scripts that run on Issue creation/update and Sprint creation/update.
I recommend you use the Jira Software API and not the normal API because issues don't have their own sprint information in the normal api... https://developer.atlassian.com/cloud/jira/software/rest/
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