Dear forum users,
i need your help with an automation problem: We are using Automation for Jira Server 7.2.3
For recalculation of a derivative due date when another number field is changed we created a Field Value Change Rule with the following edit action:
Field Due date is set to {{issue.customfield_10705.minusWeeks(fieldChange.to)}}
where
- issue.customfield_10705 is a date field and
- the changed field is a number field
and fieldChange is expected to contain a number, but it seems it doesn't, because everything i tried led to the deletion of the due date. I failed already with:
- {{issue.customfield_10705.minusWeeks(fieldChange.to)}}
- {{issue.customfield_10705.minusWeeks(fieldChange.toString)}}
- {{issue.customfield_10705.minusWeeks(fieldChange.to.asNumber)}}
- {{issue.customfield_10705.minusWeeks(fieldChange.toString.asNumber)}}
- {{issue.customfield_10705.minusWeeks(fieldChange.toNumber)}}
Could you please give me a hint how to convert the data in the fieldChange into a number that can be used for calculations ?
Thank you very much for your help in anticipation,
Sebastian