Hey,
I want to set content for a custom wiki description field on view issue behaviour, !not creat.
I have a behaviour script which is doing well on create issue but not on view issue.
Anyone has an idea? :-)
Cheers
Thies
-----------------
Hi Thies,
I can confirm that it is possible to set the description on the issue view (Edit screen), as in Jira cloud, the edit screen is the issue view.
You can do that using the example script named Set default text in Description field.
You will have to remove the if statement of if (!descriptionValueContent) { on line 28 and its closing bracket on line 90 in order to be able to set the value on the view screen.
Please be aware, though, that if a description value already exists on an issue, then it would overwrite it, so the old value would be lost.
This is why the comment exists in the script, recommending running it on the create screen only as a best practice.
I hope this helps.
Regards,
Kristian
Behaviours only work in Create/Edit screen.
On the view screen, clicking a field with a behaviour opens an Edit screen.
Please check this page: https://docs.adaptavist.com/sr4js/latest/features/behaviours
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.