Hello,
Can you please help me with the Jira expressions condition to Evaluate whether the previous status was "Open"
(issue.changelogs.filter(c => c.items.filter(i => {i.field.includes("status") } ).length > 0).length > 0)
So far I am able to check whether the status was changed at any time in issue history.
Now I wish to check the latest changelog alone and find if the fromString is "Open"
Sample payload FYR:
"items": [ { "field": "status", "fieldtype": "jira", "fieldId": "status", "from": "1", "fromString": "Open", "to": "3", "toString": "In Progress" } ]
Thanks,
Majo
Hi @Majo Francis _MicroGenesis Techsoft_ ,
question, why not use the "Previous status" condition in this case?
- Tessa
hello,
I was able to crack this:
issue.changelogs[0].items.filter(i => {i.field.includes("status") }).length > 0 ? issue.changelogs[0].items.filter(i => {i.field.includes("status") })[0].fromString.includes("Open") : false
I am trying this is a Script Listener module from Script Runner. There I am trying to add a condition via expressions..
Thanks,
Majo
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.