Hi Team,
We have the following request:
There is a radio button custom filed with 4 options. There is a text field bellow it that should be populated with an example text according to what is selected in the radio button. This example text is than kept, changed a bit or completely.
We are aware that the example text can be set with Behavior scripts and we have already done that, but the changes that are done on the text filed are overwritten with the default text on each ticket update.
Has anyone come up with a solution to have a predefined text according to selection in other field but the end user can change it inline and save it as changed.
Regards,
Nadica
Hi Nadica,
First, I suspect you are not with Atlassian and you may want to change the account name you used to post.
Second, yes. Adaptivist has offered an example if statement around the Description field. You can find it HERE. Cheers!
Hi Joshua,
Already found that and tried it with text custom field, the value gets overwritten with the default text again.
Have you managed to have this working with a custom field?
Thanks,
Nadica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nadica,
Then it isn't implemented correctly as I have used that method repeatedly with success. Can you allow those skilled in Groovy to assist by posting the script? Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joshua,
Thank you for the suggestion. I did not explain correctly. In our use case we set a different text into a custom text filed, based on a selection of a radio button with a behavior script. The request is that while editing the ticket people should be able to change the value in the text field and this is also fine. However, when someone updates the ticket again, the default value is set in the filed based on the selection of the radio button again.
Regards,
Nadica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome Nadica,
Thanks for the clarification. It does not change my stance at all and makes me think I haven't explained the statement you are looking for.
The example if statment literally translates to: If the description is not empty (the !desc.formValue portion), then set the value based on this script (the desc.setFormValue(defaultValue) portion. This segment is dependent on a few other portions of the script and cannot be expected to work if inserted alone.
I suspect that the script is not written correctly if it is setting the description when a value exists, but I may be confused. Please post your script so that we may help. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi joshua,
We have managed to fix the script so it meets the stakeholders needs. Thank you for your support.
Regards,
Nadica
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.