In Behaviors Plugin 0.5.3 for Jira 5.1.8, I am unable to make reporter field as Read-Only?

Hi All,

I am upgrading my Jira from 4.3.2 to 5.1.8. I have my reporter field as read-only field for couple of transitions.

I wanted to make this reporter field as read-only in Jira 5.1.8 also. But when I install compatible version for Jira 5.1.8 i.e. Behaviour Plugin 0.5.3. then reporter field or any other user picker is not made as read-only.

This is a Bug for Behaviour Plugin. Can anyone please tell me the workaround for this?

Any help will be appreciable...

Thanks in Advance.

Renu

2 answers

1 vote
Mizan Community Champion Jan 22, 2013

What i would suggest you is write a groovy script which will add a helptext to the reporter field using setHelpText(String helptext). the help text will be the below javascript . You will need to escape it as a string :) like this you can make the field readonly only on transitions you want

<script type="text/javascript"> AJS.$(document).ready(function(){ AJS.$("#reporter-field").attr("disabled",true);});</script>

Hope this helps

Hi Mizan,

Thanks for replying.

I checked your script but sometimes it is not working.For some screen it is hiding reporter field.

Can you please tell why it is happening? & I want this for some transitions if I apply it on description it will be applied globally.

Thanks & Regards,

Renu

0 vote

You've already reported this as https://studio.plugins.atlassian.com/browse/JBHV-184 ... ?

Reporting it in multiple places is not going to make me look at it any faster.

Hi Jamie,

I know that you can not look into it faster. but I just wanted some workaround if anyone else knows it that is why I put this on the answers.

Because my client wants immediate solution for this.

If you could suggest any solution for this then it would be great for me.

Thanks & Regards,

Renu

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

654 views 6 12
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