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 votes

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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,653 views 18 21
Read article

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