class Youtrack::Tag

Public Instance Methods

create(attributes={}) click to toggle source

add new user's tag

attributes: tagName (required) String The name of the new tag visibleForGroup (required) String Name of a user group in which tag should be visible updatableByGroup (required) String Name of user group whose members can edit the new tag untagOnResolve (optional) Boolean autoremove when issue's state changes

API Success: Returns 201 Created with Location Header set Returns the response object

# File lib/youtrack/resources/tag.rb, line 27
def create(attributes={})
  tag_name = attributes.delete(:tagName)
  put("user/tag/#{tag_name}", attributes)
  response
end
get_all_tags() click to toggle source

get all user's tags

# File lib/youtrack/resources/tag.rb, line 5
def get_all_tags
  get('user/tag')
  response.parsed_response
end
get_tag_by_name( tag_name ) click to toggle source

get a user's tag by name

# File lib/youtrack/resources/tag.rb, line 11
def get_tag_by_name( tag_name )
  get("user/tag/#{tag_name}")
  response.parsed_response
end
update(attributes={}) click to toggle source

update an existing tag

attributes: tagName (required) String The name of tag to edit. newName (required) String the new name for the tag. visibleForGroup (required) String Name of a user group in which tag should be visible updatableByGroup (required) String Name of user group whose members can edit the new tag untagOnResolve (optional) Boolean autoremove when issue's state changes

API Success: Returns 301 Moved Permanently with Location Header set Returns the response object

# File lib/youtrack/resources/tag.rb, line 45
def update(attributes={})
  tag_name = attributes.delete(:tagName)
  post("user/tag/#{tag_name}", attributes)
  response
end