Hi,
I'm having issues hiding Custom field type "Message Custom Field (for Edit)" using Behaviours.
The following Behaviour server-side script does not hide the Message Custom Field (customfield_13517) on the Create screen:
def singleIssuePicker = getFieldById("customfield_13515")
def messageCustomField = getFieldById("customfield_13517")
def partnerAgreementCf = getFieldById("customfield_13514")
def optionValue = partnerAgreementCf.getValue().toString()
singleIssuePicker.setHidden(true)
messageCustomField.setHidden(true)
if (optionValue == 'Yes') {
singleIssuePicker.setHidden(false)
}
else if (optionValue == 'No') {
messageCustomField.setHidden(false)
}
I've tested a few other custom field types which hide OK. Is there a difference with the Message Custom Field field type that does not allow it to be hidden like other fields? Is it possible to hide this field type using another method?
JIRA Server 8.3.4
Scriptrunner 5.6.2.1-jira8
Thanks,
Andrew
Hi Andrew,
The project.id should work. JIRA also accepts the variabe project.key, worth a try. ![]()
You can see more details on page below:
https://developer.atlassian.com/static/connect/docs/latest/concepts/context-parameters.html
Hope it helps.
Cheers
When I put it in %project.id% it just shows that in the URL When I put it in {project.id} I get an illegal operation error message when I try to do the transition. When I pu it in as project.id I just get that in the URL. Nothing seems to work in the Update Issue Custom Field to translate the value of the variable... i am going to do it when I auto create the issue with Bob swifts create on transition instead. It's a little early in the process but it works. Still would like to know if there is a solution out there..
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.