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
4,298,417
Community Members
 
Community Events
165
Community Groups

Scriptrunner behavours only working in the portal

Edited

We have tried writing a few scriptrunner behaviours to hide fields and set default values for fields in JSM projects, but they only seem to work in the portal, not for issues created in JSM from the agent view. Is this expected behaviour? I can find nothing in the documentation that indicates this should be the case.

e.g. My behviour config (project mapping is for a service desk project):

image.png

The portal request with the description text added:

image.png

Thanks, Linda

2 answers

2 accepted

1 vote
Answer accepted

@Linda Milne_Togetha Group_ -

Hi Linda:

Yes in your first question.  In regards to your second question, it seems your condition setup is incorrect - It is setup to hide the priority field only for members of the jira-administration group.  Is that your intention?

Please advise.

Best, Joseph

Yes, we were testing it on priority. But if I switch to a custom field it works.

Thanks, you filled in the missing pieces of my knowledge.

0 votes
Answer accepted

@Linda Milne_Togetha Group_ -

Hi Linda:

For your Behavior setup, if you want it function when one creates issues via the project UI (agent view), then you need to make sure that your project mapping associated with your Behavior setup includes the appropriate issue types.  

I believe the reason why it is working with your request type form (Portal UI), it is because your project mapping only called out your specific request form types.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

We're using the following mapping:

image.png

Do we need to do a project / issuetype mapping as well?

... OK, yes, working for settting the description, but still not working for hiding fields. Is there some other secret to hiding fields?

 

image.png

 

Is it for custom fields only? If I hide a custom field it seems to work.

 

Suggest an answer

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

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

284 views 2 9
Read article

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