I'm using scriptrunner behaviour to change jira field behaviour in "create issue".
The background is project field allow search project key or beginning of the project name(Chinese). But project field does not allow fuzzy search(middle of the project name). We created a Text fied follow https://scriptrunner.adaptavist.com/5.8.0/jira/behaviours-conversions.html to allow fuzzy search project list. But can not sync the text field back to project field.
I saw posts that people can update system field like affected versions, components, versions. But I can not update project field because:
1. def formField=getFieldById("project")
2. formField.getValue() return NULL. Thus I can not know the type of the field value.
3. formField.setFormValue(tried several param type: Project, Project Id, Project Key) does not change the field.
4. I tested formField.setHiden(true). It is working. So getFieldById("projecgt")should have returned the right field.
How to update the project field in "create issue"? please guide us. thanks.
Hi @alee zhang
Could you provide some print screens of what you are trying to do exactly?
If you are trying to change the Project that has been selected by updating the Project field using the Behaviour, this is not doable.
Thank you and Kind Regards,
Ram
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.