Hi,
How can I dynamically change the description for the "field" attachment, in a Scriptrunner behaviour?
I hoped something like this:
def formField = getFieldById("attachment")
formField.setRequired(true)
formField.setDescription ("Please attach a document")
I have also tried getFieldByName("Attachment"), but does not work.
Your script works for me.
Where did you put this script?
Are you seeing any errors in the jira logs?
Did you make sure you have the correct mapping on the behaviour config?
Thank you for responding.
I forgot to write that it's in the customer portal. In the backend it works correct.
Backend:
Portal:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ha... sorry, I missed seeing the portal tag.
I don't have any experience using behaviours with the SD portal.
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.