Behaviours Plugin - make field writable

jordan help July 17, 2014

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

0 votes
jordan help July 22, 2014

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

0 votes
Christian Czaia _Decadis AG_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2014

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

Christian Czaia _Decadis AG_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2014

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? ;-)

jordan help July 22, 2014

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