We are planning to use Jira Software to track projects and tasks for a certain team. This team wont be doing code releases so don't need to track versions.
However they want to always set the fix versions field to the same value so can use the backlog board and version view option to see all items for their team.
---
How can a post-function script be used to always set the value of the fix versions field to be a default value. For example say always want version field to be ABC.
I tried creating a post-function with the script here
https://community.atlassian.com/t5/Jira-questions/How-to-set-the-value-of-fix-version-default-field-in-an-issue/qaq-p/295929
but I get a runtime error on the line this line due to null pointer (versionn = null)
issue.setFixVersions(Arrays.asList(versionn))