Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • All mails which i am reciving to that project email they are automatically converting as an issue in JIRA

JMWE error "expected a number but got" on a sum() event-based calculation.

Sally Wheeler
July 14, 2022

I am new to using JMWE and I probably have the syntax incorrect but I cannot figure out what is wrong.

I have an issue type named shipment in which a number field is entered with the number of samples in that shipment.

This issue type is under an epic.

I would like a total number of samples field to be shown on the epic view screen where it is continually updated every time the number of samples field is updated in any shipment for the epic.

This is what I did. But the field still says None. I even went to a shipment and switched a number and switched it back to hopefully trigger the calculation and still nothing. Can you help to clarify what I am misunderstanding? The error it states: "expected a number but got: | sum({issue.fields.customfield_10083})"

image.png

 

2 answers

2 votes
Nitram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 22, 2012
0 votes
Martin Bayreuther
Contributor
November 22, 2012

Hello Mohan,

as described in the documentation link by Mohan, there are multiple mail listeners.

To avoid creation, use a listener that only adds comments to existing issues.

At the same time you should ensure that other email is cleaned up properly, otherwise you will see a number of exceptions in your log file informing you that no issue can be created from an email.

We have streamlined all that by adding a mail pre-filter to Jira, so that we can

  1. serve multiple projects in different ways
  2. auto-reply in case something goes wrong

There are a number of mail filtering tools out there. We are using the old fashioned procmail.

Regards

Maba

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events