In Jira automation in Jira Cloud, how can I get just the sprint name using the fieldChange.fromString/fieldchange.tostring smart values?
Currently, I have a rule that sends an email when the value of the Sprint field changes. I want to have the name of the sprint before it was changed and the name after it was changed, so I use these smart values:
{{fieldChange.fromString}}
{{fieldChange.toString}}
But, they provide way too much. For example, this is what I get for them
[{id=2168, name=Engineering Sprint 7, state=closed, boardId=400, goal=, startDate=2023-01-17T20:51:25.239Z, endDate=2023-01-31T20:13:00.000Z, completeDate=2023-01-31T20:19:26.859Z}, {id=2190, name=Engineering Sprint 8, state=active, boardId=400, goal=, startDate=2023-01-31T21:17:12.215Z, endDate=2023-02-14T21:29:00.000Z}]
All I want is the name value for the sprint. I tried these smart values, but they return nothing:
{{fieldChange.fromString.name}}
{{fieldChange.toString.name}}
How can I get just the name of the sprint before and after it was changed?
Hi @Cash Coyne
I suggest using the match() function with a regular expression to pull out just the name value from the text: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#match--
Kind regards,
Bill
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.