{"id":694,"date":"2010-08-16T13:28:07","date_gmt":"2010-08-16T11:28:07","guid":{"rendered":"http:\/\/www.netexpertise.eu\/en\/?p=694"},"modified":"2021-04-23T09:46:31","modified_gmt":"2021-04-23T07:46:31","slug":"ticket-user-group-auto-assignment","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html","title":{"rendered":"GLPI Ticket User Group Auto Assignment"},"content":{"rendered":"\n<p><a href=\"\/en\/category\/misc\/glpi\">GLPI<\/a> user has to select the group he belongs to when creating a ticket or else the field remains empty.<br>This stored procedure automatically assigns all tickets to the user&#8217;s group. Setup a cron job on your <a href=\"\/en\/category\/database\/mysql\">Mysql<\/a> server to run it as often as you need.<br>\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">begin\nupdate GLPI_database.glpi_tracking t\nset t.fk_group= (\nSELECT g.id\n   FROM GLPI_database.glpi_users u,\n        GLPI_database.glpi_groups g,\n        GLPI_database.glpi_users_groups ug\n   WHERE u.id = ug.fk_users\n   AND g.id = ug.fk_groups\n   AND u.id=t.author\n   LIMIT 0 , 1)\nwhere t.fk_group is null or t.fk_group='' or t.FK_group=0;\nend<\/code><\/pre>\n\n\n\n<p><br>Also check out how to do a full <a href=\"\/en\/misc\/glpi\/auto-update-devices-in-glpi.html\">hardware inventory<\/a> of your network with GLPI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GLPI user has to select the group he belongs to when creating a ticket or else the field remains empty.This stored procedure automatically assigns all tickets to the user&#8217;s group. Setup a cron job on your Mysql server to run it as often as you need.\u00a0 Also check out how to do a full hardware [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[306],"tags":[398,385],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - GLPI Ticket User Group Auto Assignment<\/title>\n<meta name=\"description\" content=\"Assign automatically GLPI ticket&#039;s group that is left empty to the user who has created the ticket\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - GLPI Ticket User Group Auto Assignment\" \/>\n<meta property=\"og:description\" content=\"Assign automatically GLPI ticket&#039;s group that is left empty to the user who has created the ticket\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2010-08-16T11:28:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-23T07:46:31+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html\",\"url\":\"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html\",\"name\":\"Netexpertise - GLPI Ticket User Group Auto Assignment\",\"isPartOf\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#website\"},\"datePublished\":\"2010-08-16T11:28:07+00:00\",\"dateModified\":\"2021-04-23T07:46:31+00:00\",\"author\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\"},\"description\":\"Assign automatically GLPI ticket's group that is left empty to the user who has created the ticket\",\"breadcrumb\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.netexpertise.eu\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GLPI Ticket User Group Auto Assignment\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#website\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/\",\"name\":\"Netexpertise\",\"description\":\"Systems \/ Networks \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.netexpertise.eu\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - GLPI Ticket User Group Auto Assignment","description":"Assign automatically GLPI ticket's group that is left empty to the user who has created the ticket","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html","og_locale":"en_US","og_type":"article","og_title":"Netexpertise - GLPI Ticket User Group Auto Assignment","og_description":"Assign automatically GLPI ticket's group that is left empty to the user who has created the ticket","og_url":"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html","og_site_name":"Netexpertise","article_published_time":"2010-08-16T11:28:07+00:00","article_modified_time":"2021-04-23T07:46:31+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html","url":"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html","name":"Netexpertise - GLPI Ticket User Group Auto Assignment","isPartOf":{"@id":"http:\/\/www.netexpertise.eu\/en\/#website"},"datePublished":"2010-08-16T11:28:07+00:00","dateModified":"2021-04-23T07:46:31+00:00","author":{"@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa"},"description":"Assign automatically GLPI ticket's group that is left empty to the user who has created the ticket","breadcrumb":{"@id":"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.netexpertise.eu\/en\/misc\/glpi\/ticket-user-group-auto-assignment.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.netexpertise.eu\/en"},{"@type":"ListItem","position":2,"name":"GLPI Ticket User Group Auto Assignment"}]},{"@type":"WebSite","@id":"http:\/\/www.netexpertise.eu\/en\/#website","url":"http:\/\/www.netexpertise.eu\/en\/","name":"Netexpertise","description":"Systems \/ Networks \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.netexpertise.eu\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa","name":"dave","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/694"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/comments?post=694"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/694\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/media?parent=694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/categories?post=694"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/tags?post=694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}