get_workspaces()
get_workspaces()
Returns a list of valid workspaces.
A Footprints Ticket object.
<?php
/**
* Footprints API for is-dev applications.
* Note: This relies on the internal API maintained by Operations.
*/
require_once("vendor/autoload.php");
$ticket = new \unikent\Footprints\Ticket("My Example Ticket");
$ticket->set_emails(false, false, false);
$ticket->set_priority("Normal");
$ticket->set_user("sk");
$ticket->set_type("Incident");
$ticket->set_category("Web");
$ticket->add_assignees(array(
"Learning and Research Systems",
"sk"
));
$ticket->add_entry("We did this cool thing the other day!");
$ticket->add_technical_note("Something is broken.");
$ticket->add_entry("Oh, it isnt working.");
$ticket->add_technical_note("Hah it was that function I wrote a long time ago.");
$ticket->add_entry("Fixed!");
$ticket->set_status("Resolved");
echo $ticket->create();
<?php
/**
* Footprints API for is-dev applications.
* Note: This relies on the internal API maintained by Operations.
*/
require_once("vendor/autoload.php");
$ticket = new \unikent\Footprints\Ticket("My Example Ticket");
$ticket->set_emails(false, false, false);
$ticket->set_priority("Normal");
$ticket->set_user("sk");
$ticket->set_type("Incident");
$ticket->set_category("Web");
$ticket->add_assignees(array(
"Learning and Research Systems",
"sk"
));
$ticket->add_entry("We did this cool thing the other day!");
$ticket->add_entry("Oh, it isnt working.");
$ticket->add_entry("Fixed!");
$ticket->set_status("Resolved");
echo $ticket->create_async();
set_emails(boolean $assignees = true, boolean $contact = true, boolean $cc = true)
Who should be emailed about this ticket? Note: Footprints emails assignees anyway.
But maybe the bug will be fixed one day!
| boolean | $assignees | Should assignees be emailed? |
| boolean | $contact | Should contacts be emailed? |
| boolean | $cc | Should cc'd addresses be emailed? |