Is there possibility to configure different default values and Options for custom field based on issue types inside one project ?
example :
projects x,y and z in Jira
Y and Z uses Custom field default configuration for all issue types.
In project x settings:
- if issue type is Support then work type is support or other
- if issue type not Support work type cf value can be Design, development or other - default development.
I tried to do settings via "Configure Custom Field:" , but project is possible to select only once for settings (= only one setting/project) .
After searching found request to add functionality https://jira.atlassian.com/browse/JRASERVER-6851, but it is in Not being considered status.
I found solution/workaround by using Jira script runner Behaviour and script :
import com.atlassian.jira.component.ComponentAccessor
def FieldName = getFieldByName("<customfield name>")
def optionsManager = ComponentAccessor.getOptionsManager()
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def customField = customFieldManager.getCustomFieldObject(FieldName.getFieldId())
def config = customField.getRelevantConfig(getIssueContext())
def options = optionsManager.getOptions(config)
def optionToSelect = options.find { it.value == "<selection>" }
FieldName.setFormValue(optionToSelect.optionId)
Mapping scripts to project issuetypes default values can be set.
Hello @Renni Verho,
Indeed it seems it is a limitation in the default JIRA where the Custom Field context can only be configured for once per project. So it would seem that it is not possible to set multiple context for each projects in the default JIRA :(
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.