I have a custom field which has to be set to a default value without giving the user access to change the field content. Simply defining a default value doesn't work - the field stays empty. Is there any easy way the get the field set?
(This has only to be done for one projects, in all other projects users are allowed to change the field, so it is present on the create issue screen there)
Thanks in advance!
You can do a post-function of the Create step where sets the value field. I don't remember if that's a by default action on Jira or it is part of this plugin:
Other workaround would be using the Script Runner plugin. And create a Script Post-Function that assigns the value to the custom field. It is pretty easy to do and I think this would be the script:
def cf = "customfield_xxxx"
def fieldname = customFieldManager.setCustomFieldObject('X Value')
Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG