Hi
I need to set the summary field with a default value that is shown in the create screen such that users does not have to enter anything to the field.
To this end i have create a post function on the create transition:
and it looks as:
I have tried a few different conditions, im not really sure what it should be. For the code it self, i think from the example code that i can use issue directly.
The post function does not run:
I would expect it to run every time i Create a tilbud issue. Can any one help me to understand it is that im doing incorrectly here.
Thanks
Jens
Hi JensH,
I would advise using the Behaviours feature provided by ScriptRunner for Jira Cloud to set the summary on the create screen.
This feature would allow you to set the value of the Summary field every time an issue is created so the user does not have to fill in this field.
A script to do this would look something like the script below.
Set Summary Behaviours
const summaryValue = "A demo summary";
getFieldById("summary").setValue(summaryValue);
Please note that currently, Behaviours only works on Jira Software company-managed projects, as documented here.
A post function as you have tried will not set any values on the Create screen and will only set values after the issue has been created.
I hope this information helps.
Regards,
Kristian
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.