Can anyone point me to materials or examples of how to append a text string to the history of an issue using ScriptRunner/Groovy. I believe that this would be as a Behaviour, not a Listener or Post action.
I've spent days in Google Search looking for examples and all I've come away with is don't use the ComponentManager in favor of the ComponentAccessor.
Jira v8.0.2 / ScriptRunner v220.127.116.11
On an Issue page, down under Activity, there are the following "tabs": All, Comments, Work Log, History, Activity, CI Builds.
The History tab seems to be keeping track of activities that are lower level than humans posting comments on an issue.
That's the History I was referring to.
What we'd like is that when we perform an action in ScriptRunner (for example, moving an issue from one status to another automatically) that our script would add something to the History documenting the source of that change.
Did that answer your question?
The way we use Behaviours (and there may well be more functionality that I'm unaware of) is to do things in the UI as it renders. That by itself is nothing to record in history. However, if the user goes through with his action, then any data element changes will be recorded.
Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events