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

Hello,
 

I have a case where I want issues to be classified according to the "customer" who submits them.

I have a field "Customer" with all customers I want, but I don't want each customer to view the list of customers, I want the field to be read-only and set automatically to the customer who is creating the issue.

Any advice?

Thanks,

Essra,

2 answers

1 accepted

Hi,

An alternative solution would be to implement security levels for each customer. That is assuming that you not only want to prevent customers from seeing other customers, but you also want to prevent customers from seeing issues  from other customers. This is an out of the box solution.

If you want the solution that you describe, you could use the script runner plugin to set the customer field based on the reporter and then make that field read-only. I have such a script, but it is based on groups in Crowd so it may not fit your situation. In any case, I can provide it if you want it.

Regards,

Geert

Thank you... I used the script runner plugin to set the customer field based on the reporter... and it worked (to set issue security) and I made the field read-only... there is no need to make it be set automatically to a given value

Hi,

Well, yes, that's what I want to do with "Customer" filed; to set issue security.

When the reporter is from our company, he/she selects the customer we want to create issue for, and the security level is automatically chosen according to the customer field.

but I don't know what I should do when the reporter is one of the customers.

 

If you think your script might help, and it is easy to modify based on our needs, please provide it.

 

Thank you,

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,802 views 11 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot