Skip to content

adicionar um grupo #5

@virgiliodantas

Description

@virgiliodantas

no arquivo glpi-sdk-ruby/lib/glpi/sdk/resource.rb :

  #adicionar group
  def self.group_ticket(session, id, attributes = {})
    item_type = attributes.key?(:item_type) ? attributes.delete(:item_type) : type_name
    payload = { input: attributes }.to_json
    session.request :post, "/#{item_type}/#{id}/group_ticket/", body: payload
    find(session, id, item_type)
  end

para adicionar o grupo como observador(3), atribuir a um usuário(2) ou requerente(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions