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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

ignoreEmptyValue:false
conditionalExecution:false
sendNotifications:false
createMissingValues:false
valueIsJSON:false
_needsRefresh:true
value:"{{ issue | sprints("active") | last | field("id") }}"
appendValues:false
_modified:"2019-06-13T11:16:22.189Z"
copyOnlyIfNotSet:true
fieldId:"customfield_10007"
runAsType:"addonUser"

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
TAGS
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

273 views 2 5
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