Beispiel #1
0
  <div class="editable_hidden" style="display:none;">
  <div id="jira-link"><a href="<?php 
echo $jira_client->getJiraBaseUrl();
?>
/secure/CreateIssue!default.jspa" target="_new">Create New Issue</a></div>
  <input type="text" placeholder="Enter JIRA key(s), separated by commas (i.e. CORE-2024, OPS-1453)" id="jira_key_input" name="jira_key_input" class="input-xxlarge" onblur="addTicket()">
  </div>

  <table class="table table-striped">
    <thead>
      <tr>
        <th>Key</th>
        <th>Summary</th>
        <th>Assignee</th>
        <?php 
foreach ($jira_client->getAdditionalIssueFields() as $k => $v) {
    echo "<th class='jira_addition_field'>{$k}</th>";
}
?>
        <th></th>
      </tr>
    </thead>
    <tbody id="jira_table_body">
      <?php 
foreach ($jira_tickets as $ticket_key => $ticket_attributes) {
    $style = "jira_" . str_replace(" ", "_", strtolower($ticket_attributes['status']));
    echo "<tr class=\"jira-row\">";
    echo "<td><a href={$ticket_attributes['ticket_url']} class=\"{$style}\">{$ticket_key}</a></td>";
    echo "<td>{$ticket_attributes['summary']}</td>";
    echo "<td>{$ticket_attributes['assignee']}</td>";
    foreach ($jira_client->getAdditionalIssueFields() as $k => $v) {