How to set a custom field to certain value, and read only, depending on reporter

How to set a custom field to certain value, and read only, depending on reporter?

can you please provide a script?

2 answers

0 vote

Setting a field to a value is easy if you have the script-runner addon (or you can write your own functions to provide it).  You can bring in "value depends on reporter" there as well.

However.  JIRA does not do field level security.  You can't make a field read-only for some users and read/write for others, without either doing it in the workflow or installing the "field security" add on.

I'm not sure that I have understood your requirement though - I suspect that what you might be looking for is a field that is always read-only, but shows a value that depends on the reporter?  If that is the case, then, again, the script-runner is your friend - you can create a scripted field to do exactly that.

The read-only function can be done through the behavior plugin, but I want to know what the script (to set value of field accoridng to reporter) is and how i can implement it

can you help me writing the script? given that, the reporter is from group "Submitters" and the field "Source" should be automatically set to the value "Site" when this reporter is creating an issue.

If we have support for the custom field, you can use JJUPIN LiveFields feature.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

202 views 1 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you