Behaviours Plugin - make field writable

Gday,

I'm trying to make the Priority field editable by the reporter only to get to know the Behaviours plugin, but having no luck.

I've created a behaviour, mapped it to a project, and and issue type. I;ve specified the Guide Workflow too though know this is unneccessary.

I've configured the field as below:

Field: Priority
Delete
Optional (Require)
Writable (Readonly)
Shown (Hide)

Add serverside script

Conditions:
  • When:
    • Current user is Reporter (Delete)
  • Except:
  • Add

If i delete this field behaviour using the delete button shown above, I am able to Edit the issues priority. With the config above I cannot edit the field.

Any assistance is appreciated,

Cheers,
Jordan

2 answers

I think you got it the wrong way. Waht I see is:

"Make field Readonly when Current User is Reporter"

I would change it to "writable when current user is reporter" OR "readonly EXCEPT current user is reporter"

Cheers

Sorry. I got it wrong:-)

Could you try: Readonly except current user is reporter?

I guess you made sure that you're the reporter, right? ;-)

Cheers for the quick response!

I tried the reverse as you suggested and still could not edit the field. Also tried making myself the current assignee and setting as below:

Fields
Field: Priority
Delete
Optional (Require)
Writable (Readonly)
Shown (Hide)

Add serverside script

Conditions:
  • When:
    • Current user is Current assignee (Delete)
  • Except:
  • Add

And the reverse as well for good measure.

I've definitely specified the workflow that's in use as well.

Just seems like it's not working at all.

I also tried enabling the "Use Validator Plugin" - but i have the red asterisk's regardless so that didn't tell me if it's working or not.

It is mapped to the issue type of my test ticket too.

Would you have any other ideas by any chance?

Cheers,
Jordan

Cheers for the quick response!

I tried the reverse as you suggested and still could not edit the field. Also tried making myself the current assignee and setting as below:

Fields
Field: Priority
Delete
Optional (Require)
Writable (Readonly)
Shown (Hide)

Add serverside script

Conditions:
  • When:
    • Current user is Current assignee (Delete)
  • Except:
  • Add

And the reverse as well for good measure.

I've definitely specified the workflow that's in use as well.

Just seems like it's not working at all.

I also tried enabling the "Use Validator Plugin" - but i have the red asterisk's regardless so that didn't tell me if it's working or not.

It is mapped to the issue type of my test ticket too.

Would you have any other ideas by any chance?

Cheers,
Jordan

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,128 views 2 7
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