> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://tester.army/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://tester.army/_mcp/server.

# Get a project issue

GET https://tester.army/api/v1/projects/{projectId}/issues/{issueId}

Get one tracked issue with its full details and recent run occurrences: which runs surfaced it and when.

Reference: https://tester.army/docs/api-reference/tester-army-api/projects/get-a-project-issue

## Authentication

- `Authorization` header (bearer token, required) — API key authentication using Bearer token format

## Request

### Path parameters

- `projectId` (string, required) — Project ID or shortId
- `issueId` (string, required) — Issue ID

## Response

### 200

Issue detail with recent occurrences

- `issue` (object, required)
  - `id` (string, required)
  - `projectId` (string, required)
  - `testId` (string, required, nullable)
  - `status` (enum, required) — Triage status. Resolved issues reopen automatically if a run surfaces them again.
    - Allowed values: `open`, `resolved`, `false_positive`
  - `issueType` (enum, required)
    - Allowed values: `issue`, `warning`
  - `source` (enum, required) — How the tracker learned about the issue: an explicit agent report or a failed test step.
    - Allowed values: `agent_report`, `step_failure`
  - `name` (string, required)
  - `description` (string, required)
  - `url` (string, required, nullable)
  - `severity` (integer, required, nullable) — 1 (low) to 5 (critical), when reported.
  - `category` (string, required, nullable)
  - `reproductionSteps` (list of string, required, nullable)
  - `expectedBehavior` (string, required, nullable)
  - `actualBehavior` (string, required, nullable)
  - `screenshotUrl` (string, required, nullable)
  - `environment` (enum, required) — Deployment bucket the issue is tracked on.
    - Allowed values: `production`, `staging`, `preview`, `custom`
  - `environmentName` (string, required) — Resolved environment label ("Production", "Staging", "QA EU", ...). Issues are tracked per environment: the same bug on different environments is separate issues.
  - `occurrenceCount` (integer, required) — Number of runs that surfaced this issue.
  - `firstSeenRunId` (string, required, nullable)
  - `lastSeenRunId` (string, required, nullable)
  - `lastSeenAt` (datetime, required)
  - `resolvedAt` (datetime, required, nullable)
  - `createdAt` (datetime, required)
  - `updatedAt` (datetime, required)
- `occurrences` (list of object, required)
  - `runId` (string, required)
  - `runTitle` (string, required, nullable)
  - `tMs` (integer, required, nullable) — Recording offset (ms) when the issue was reported in that run.
  - `createdAt` (datetime, required)

## Examples

**Response**

```json
{
  "issue": {
    "id": "string",
    "projectId": "string",
    "testId": "string",
    "status": "open",
    "issueType": "issue",
    "source": "agent_report",
    "name": "string",
    "description": "string",
    "url": "string",
    "severity": 1,
    "category": "string",
    "reproductionSteps": [
      "string"
    ],
    "expectedBehavior": "string",
    "actualBehavior": "string",
    "screenshotUrl": "string",
    "environment": "production",
    "environmentName": "string",
    "occurrenceCount": 1,
    "firstSeenRunId": "string",
    "lastSeenRunId": "string",
    "lastSeenAt": "2024-01-15T09:30:00Z",
    "resolvedAt": "2024-01-15T09:30:00Z",
    "createdAt": "2024-01-15T09:30:00Z",
    "updatedAt": "2024-01-15T09:30:00Z"
  },
  "occurrences": [
    {
      "runId": "string",
      "runTitle": "string",
      "tMs": 1,
      "createdAt": "2024-01-15T09:30:00Z"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://tester.army/api/v1/projects/projectId/issues/issueId"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://tester.army/api/v1/projects/projectId/issues/issueId';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://tester.army/api/v1/projects/projectId/issues/issueId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://tester.army/api/v1/projects/projectId/issues/issueId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://tester.army/api/v1/projects/projectId/issues/issueId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://tester.army/api/v1/projects/projectId/issues/issueId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://tester.army/api/v1/projects/projectId/issues/issueId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://tester.army/api/v1/projects/projectId/issues/issueId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```