• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tylernathanreed / jira-client-php / 13678007438

05 Mar 2025 02:15PM UTC coverage: 2.081% (+0.01%) from 2.067%
13678007438

push

github

tylernathanreed
Merge branch 'master' of github.com:tylernathanreed/jira-client-php

141 of 6775 relevant lines covered (2.08%)

0.03 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Operations/WorkflowStatusCategories.php
1
<?php
2

3
namespace Jira\Client\Operations;
4

5
use Jira\Client\Client;
6
use Jira\Client\Schema;
7

8
/** @phpstan-require-extends Client */
9
trait WorkflowStatusCategories
10
{
11
    /**
12
     * Returns a list of all status categories
13
     * 
14
     * **"Permissions" required:** Permission to access Jira.
15
     * 
16
     * @return list<Schema\StatusCategory>
17
     */
18
    public function getStatusCategories(): array
×
19
    {
20
        return $this->call(
×
21
            uri: '/rest/api/3/statuscategory',
×
22
            method: 'get',
×
23
            success: 200,
×
24
            schema: [Schema\StatusCategory::class],
×
25
        );
×
26
    }
27

28
    /**
29
     * Returns a status category.
30
     * Status categories provided a mechanism for categorizing "statuses"
31
     * 
32
     * **"Permissions" required:** Permission to access Jira.
33
     * 
34
     * @param string $idOrKey The ID or key of the status category.
35
     */
36
    public function getStatusCategory(
×
37
        string $idOrKey,
38
    ): Schema\StatusCategory {
39
        return $this->call(
×
40
            uri: '/rest/api/3/statuscategory/{idOrKey}',
×
41
            method: 'get',
×
42
            path: compact('idOrKey'),
×
43
            success: 200,
×
44
            schema: Schema\StatusCategory::class,
×
45
        );
×
46
    }
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc