Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ScriptRunner Behaviours Constrained Issue - Make Project and Issue Type read only

I'm using the "constrained issue" with behavior to launch a create dialog with preset and readonly values (https://scriptrunner.adaptavist.com/5.2.0/jira/fragments/CreateConstrainedIssue.html) 

The following code makes the Project and Issue Type appear to be readonly:

getFieldById("project-field").setReadOnly(true)
getFieldById("issuetype-field").setReadOnly(true)

However, the values can be changed by clicking on the down arrow of the select box.

Is there a way to make them actually read only, perhaps by disabling or hiding the pull down?

1 answer

Hi Steve.

This used to be a bug but it has since been fixed I believe. Is this still an issue? If so I'll investigate further.

Cheers

DY

I'm talking about this bug:

https://productsupport.adaptavist.com/browse/SRJIRA-2738

Mind you, I do not know which version of ScriptRunner you are in, so I can't know if you were affected by this bug, but it was fixed on July the 9th this year. on version 5.2.28

Do let me know if you have a greater version and you are still affected by this.

We are using version 5.4.12, and we are successfully setting the values - it's just that the control remains editable by clicking on the down arrow, even though it appears to be read-only

This then sounds like a bug. I would advise that you open a support ticket in our support portal to let our team help you.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

35 views 0 2
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