Method: IssueLinkType#name
- Defined in:
- lib/jirarest2/services/issuelinktype.rb
#name(uiname) ⇒ Array?
Get the internal name and direction instead of the one in the UI.
76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/jirarest2/services/issuelinktype.rb', line 76 def name(uiname) return uiname if @types.has_key?(uiname) # If the name is already correct just bounce it back @types.each { |name,singletype| if singletype.inward == uiname then return singletype.name, "inward" elsif singletype.outward == uiname then return singletype.name, "outward" end } return nil # Nothing found don't want to return @all end |