Can you please help me with script of the below use-case –
For a sub-story which is linked to a story.
I want to calculate the sum of the values of a custom field (Technical Points) belonging to issuetype – Sub-story. Further, I want that value to be placed in another custom field (Aggregate Technical Points) belonging to a custom issuetype - story. Attached screenshots display different
Attached screenshots display different issuetypes (Story and Sub-story) that we are using, just to avoid confusions.
Please help me with the script of the above use-case.
There is no reason for a for-loop to break anything.
But how does the for-loop break your behaviour?
What errors are you getting?
What gets outputted to your log?
Hi Peter just validated that in fact you can use for loops in behaviors!
When I was trying to grab the product line field I wasn't referencing the originated issue, but rather the destination issue. Corrected the below:
def productLineValue = contextIssue.getCustomFieldValue("Product Line(s)") as List
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.