Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using the Scriptrunner Post Function to Configure the Mapper Based on a customField


Quiero asignar automáticamente un usuario específico (usando su nombre de usuario) según los campos personalizados

Por lo tanto, configuré el siguiente script usando la función de publicación Scriptrunner.




The users are well assigned based on the custom field, but when I execute the transition of the flow the assigned one is not updated.

Did I do something wrong with my script?

Thank you in advance for your help

1 answer

1 accepted

0 votes
Answer accepted

Hi @reynaldo 
In what order are you adding your postfunction ? 

In your workflow postfunction , you should have
1.  Creates the issue originally
2.  Re-index
3.  Fire a Issue Created event...

This is the order:


It seems that your code is ok. I would add 
log.warn issue.getCustomFieldValue(areaCustomField)

and at the end

log.warn issue.getAssignee() to see if it gets assigned correctly

After your workflow executes, check the logs in "No failures in the last 10 executions" to see what gets logged.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

182 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you