Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
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.
May 25, 2016

Depends on the project type, and version of JIRA Agile/Software.  In the JIRA I'm looking at though:

Scrum and Kanban:

  •  Bug
  •  Task
  •  Sub-task
  •  Story
  •  Epic

Simple development:

  •  Bug
  •  Task
  •  Sub-task
  •  Improvement
  •  New Feature
  •  Epic

Remember these are just defaults by project type.  There's no harm in changing them to what you need.

1 vote
Michael Green
Contributor
May 26, 2016

Thanks - I just couldn't believe this isn't documented anywhere !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events