Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Is it possible to get the Behavior Name in the Behavior?

I want to be able to include the Behavior Name to the logs when the behavior is triggered, but I don't want to hard-code (so to speak) the behavior name inside the script to be able to use it.  Is it possible to automatically the behaviours own name programmatically?

I see the behavior name is part of the xml 

<config use-validator-plugin="false" name="RSCH Request Tracker Behaviors" description="" guideWorkflow="RSCH Request Tracker Workflow">

1 answer

I think I managed to do this as follows:

def triggerField = getFieldById(getFieldChanged())

def behaviorName =

Wondering if this is the right way to do it

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events