Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner Field Behaviours Change Select Options for Asset Fields

Amos
Contributor
October 16, 2023

I'm aware that this is potentially achievable using asset custom fields and reference asset custom fields, however I have a unique circumstance that extends beyond this.

Context:

I have an asset model that has four object types:

  • A
  • B (with references to A)
  • C (with references to A)
  • D (with references to A)

I have exposed all these object types through custom fields like so:

  • A (asset field)
  • B (reference asset field) referenced to A
  • C (reference asset field) referenced to A
  • D (reference asset field) referenced to A.

Using ScriptRunner, I want to define a field behaviour whereby options for customfield D (which is object type D) only displays objects D1, D2 and D3 if B1 in customfield B has been selected. Otherwise, I only want D1 and D2 to be selectable. Any assistance with the groovy aspect of this would be much appreciated. I've been able to interact with assets previously using the ObjectFacade, however setting the field options is proving to be slightly more challenging.

2 answers

0 votes
Vinay Badavanahalli Suryanarayanarao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 22, 2018

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxHttpHeaderSize="8192" SSLEnabled="true"
maxThreads="150" minSpareThreads="25"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslEnabledProtocol="TLSV1.2" useBodyEncodingForURI="true"
keyAlias="jira" keystoreFile="/data/jira/install/atlassian-jira-software-7.2.8-standalone/certs/jira.jks" keystorePass="<Passowrd>" keystoreType="JKS"/>

 

This is my connector and the Jira version which we are using is 7.2.8

 

Firewall  is Good

JP _AC Bielefeld Leader_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 23, 2018

Something is blocking port 8443

or maybe force IP V4:

-Djava.net.preferIPv4Stack=true

Enrique Castillo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 29, 2019

Hi, I am having the same issue.

29-Sep-2019 22:33:09.877 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-8443]]

Was it solved. Thanks.

0 votes
Gonchik Tsymzhitov
Community Champion
October 22, 2018

Hi! 

 

Please, check your connectors configs in server.xml . 

Also, check firewall etc. 

 

Cheers,

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events