Hi Expert
Need your help in setting up a scriptrunner behaviour,
I am looking to setup a Behaviour which show Message under Project Name field
But behaviour script is not working.
const projectField = getFieldById("project");
// Set a message (Description) under the field
projectField.setDescription("Please ensure you have approval before selecting this project.");
Hi Vikrant,
I can confirm that the Project system field is not supported by Behaviours inside of ScriptRunner for Jira Cloud and this is the reason your script is not working.
You can see a list of what fields are supported per view in the documentation page here as a reference.
Custom Project Picker fields are supported by the Project System field is not supported.
This means as a workaround you should include the message below a supported field such as the summary or Issue type field.
I hope this helps.
Regards,
Kristian
Hi @Kristian Walker _Adaptavist_ I have tested with issue type field also but for Issue type also it's not working.
Kindly suggest
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vikrant,
I have checked, and the issue type field does not support having the description set on the Create view as the Atlassian docs state here, so this means it is not possible to set the description below it.
It also mentions this in our documentation page I linked in the previous post and I was looking at the wrong row in the table, so originally thought it was supported and I appologise for this.
This means that instead, you will need to use the summary field to set a description below, as I have tested setting a description below this field and it works as expected.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Kristian Walker _Adaptavist_ For your confirmation.
I thought I was doing something wrong.
I'll summary field.
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.