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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

795 views 2 19
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