Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

jgiraldo1 April 23, 2020

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

Suggest an answer

Log in or Sign up to answer
0 votes
jgiraldo1 April 24, 2020

I think I managed to do this as follows:

def triggerField = getFieldById(getFieldChanged())

def behaviorName = triggerField.fieldBehaviours.b.name

Wondering if this is the right way to do it

TAGS
AUG Leaders

Atlassian Community Events