Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Behaviours on jira project field based on a field value


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 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.



1 answer

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,


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

310 views 0 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you