Set Assignee using Behavior plugin does not work sometimes

Hi, I need to change the Assignee field baed on a custom field change. I have the below code in my Behaviors: FormField assignee = getFieldById("assignee") assignee.setFormValue("testUser") This only works sometimes. Most of the times it makes the issue 'Unassigned'. Is there any problem with Behaviur plugin with setting Assignee. I have JIRA 5.1.8

1 answer

0 vote

I saw your bug report but I ignored it thus far because it contained too much code. Can you reproduce the problem just using that code snippet above?

Because the code you posted in your bug report had a lot of conditionals, and you said it worked sometimes... so I thought the problem was in your code.

Nothing in computing is truly random... if it doesn't work sometimes, can you work out what is different about those sometimes?

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 Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

284 views 3 11
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