I have a listener on issue update and I need to get the old and new values of all the fields that were modified. I have this set up by doing the following:
List changeItems = event.getChangeLog().getRelated("ChildChangeItem")
I then iterate through the changeItems and get the information I need using oldstring and newstring. The problem is with the Cascading Select field type of which we have a few. Instead of giving just the string of the value like the other issue types it instead gives a string in the form "Parent values: FirstValue(xxxxx)Level 1 values: SecondValue(xxxxx)" where FirstValue and SecondValue are the actual selected options. Is there anyway to get the old and new cascading select options without all the extra information?
Is oldvalue and newvalue any better? The old and new "string" are the display values and not that useful.
However this is something that JIRA is not particularly good at, you always lose type information for the historical values. If all else fails you may need to parse it with a regex.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs