What am i doing:
I am trying to create a dynamic form that will fetch data from an API and will display the values as the user use the form. Eg: A user selects a list of services -> It lists the all the available values from the above service -> And continues further based on the what the user is selecting.
I have so far been able to:
1. Created a single choice custom field.
2. Created a single select field for listing the values from the choice of service selected.
3. Set a behavior that points to the #1 field and set the target field(#2) with the values.
4. Able to list the values in the form
I have not been able to do so far:
1. Not been able to read the values from step #2 of I have so far been able to
2. While reading the above value, the value is represented as null
3. Value from the log
```
2023-05-09 15:48:30,859+0000 https-jsse-nio-8443-exec-5 url: /rest/scriptrunner/behaviours/latest/jsd/jsd/runvalidator.json; user: xxxxxxxxxxxx WARN xxxxxxxxxxxxxxx 948x80780x1 siy15h 15.65.252.11,172.17.99.83 /rest/scriptrunner/behaviours/latest/jsd/jsd/runvalidator.json [c.o.scriptrunner.runner.ScriptBindingsManager] currentField Form field ID: customfield_10940, value: null
```
3. My code
```
One of the challenges I have faced in the past is that with JSM, the values of custom fields aren't written to the field (in the database) until the issue is created. This may be the limitation you're running into.
@Ken McClean Do you have any suggestions on moving forward with your experience with JSM?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We ended up doing a lot of post-processing with a ScriptRunner script. i.e. a listener that listens for issue creation, and if it meets certain criteria, make the changes. For example, if the issue has a value of X in a custom field, set the value of a second custom field to Y.
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.