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

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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,725 views 17 21
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