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

JMWE - "Cannot read property 'match' of null" er

We are getting this error constantly now out of the blue with one of our JMWE Post-Functions, after having this working perfectly fine before;

Set field value - internal-error - Cannot read property 'match' of null

value:"{{ issue | sprints("active") | last | field("id") }}"

Any ideas why this could have suddenly broke/changed on our workflow? :(

1 answer

1 accepted

0 votes
Answer accepted

If the destination field (customfield_10007) is the Sprint field, then this error will happen if the current issue doesn't belong to any active Sprint, because you're basically setting the spring field to [null]

Instead of logging an error, this should in fact clear the Sprint field. This is a JMWE bug that will be fixed in the next version.

In the meantime, you can avoid these errors by using Conditional Execution with this conditional execution script:

{{ issue | sprints("active") | last | field("id") }}

Thanks for your response David!

And apologies, only just seen your comment now (guess I have my email notifications turned off or something).

I'll continue to keep an eye on the error log but hopefully everything is all good now.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

466 views 5 18
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