I have a single choice select field, when ever there is a change in value and the selected value is not equal to the original value, i will set another text field to true using a behaviour script. It works fine during single edit but not during the bulk edits. Is it possible to exhibit the same using the bulk edits.
Please let us know
It sounds like you will want to write either a scripted field or a listener (both available with ScriptRunner). The scripted field is probably the more elegant solution, so that's the one I'll describe.
The scripted field could replace your text field, and you could set its value based on the change history of the select list field. You would write your scripted field to find the original value of your select list field using the ChangeHistoryManager. You can then compare the original value of the select list to the current value, and set the value of your scripted field based on the outcome. This way you don't need to worry about detecting changes.
No, sorry. I would just search for other ScriptRunner scripts that use the ChangeHistoryManager. Also, I'd do some testing in the Script Console first to see what I was working with. Just grab an arbitrary issue with the IssueManager and then use the ChangeHistoryManager to getAllChangeItems() for that issue. If you leave that variable as the last item in the script, the Script Console will print it to screen when you run and give you a good idea of what you're working with.
If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot