Skip to content

Instantly share code, notes, and snippets.

@lbt
Created June 22, 2010 11:42
Show Gist options
  • Save lbt/448364 to your computer and use it in GitHub Desktop.
Save lbt/448364 to your computer and use it in GitHub Desktop.
def determine_value( workitem, value )
return @workitem['fields']['params'][value] if @workitem['fields']['params'].has_key?( value )
return @workitem['fields']['params']['participant_options']['command'] if @workitem['fields']['params'].has_key?( 'participant_options' ) and @workitem['fields']['params']['participant_options'].has_key?( value )
nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment