Hi everyone.
I have recently created a custom field that will list an employee's assets(Field name: User Assets) in an issue, once the user is selected in another custom insight field on the same issue.
When creating a ticket in Jira, the "User Assets" field defaults to "automatic", and once the user field is properly populated, it will auto populate.
However, it doesn't behave the same when I add the field to the customer portal. The "automatic" default doesn't appear here, so the assets have to be manually selected.
Does anybody know how to make the field automatic from the portal, so that customer's don't have to manually search for the assets?
Hi Richard
I have the exact same problem as you.
"Automatic" dosent work because its a serverside script so it runs after the ticket is created.
Weird function, if you ask me.
I've been working on a code, just need to get some help on the last bits.
scriptrunner behaviours autopopulate asset customf... (atlassian.com)
I would like to suggest using the behavior scripts(Script Runner), hope you have script runner
def otherField = getFieldById("customfield_xxxxx")
def userAssets = getFieldById("customfield_zzzzz")
userAssets.setFormValue(otherField.getValue())
https://docs.adaptavist.com/sr4js/latest/features/behaviours/api-quick-reference
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.