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

tylernathanreed / jira-client-php / 13634794100

03 Mar 2025 03:19PM UTC coverage: 2.067% (-0.1%) from 2.21%
13634794100

push

github

web-flow
~ Try coveralls action

140 of 6773 relevant lines covered (2.07%)

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
    public function getStatusCategories(): true
×
17
    {
18
        return $this->call(
×
19
            uri: '/rest/api/3/statuscategory',
×
20
            method: 'get',
×
21
            success: 200,
×
22
            schema: true,
×
23
        );
×
24
    }
25

26
    /**
27
     * Returns a status category.
28
     * Status categories provided a mechanism for categorizing "statuses"
29
     * 
30
     * **"Permissions" required:** Permission to access Jira.
31
     * 
32
     * @param string $idOrKey The ID or key of the status category.
33
     */
34
    public function getStatusCategory(
×
35
        string $idOrKey,
36
    ): Schema\StatusCategory {
37
        return $this->call(
×
38
            uri: '/rest/api/3/statuscategory/{idOrKey}',
×
39
            method: 'get',
×
40
            path: compact('idOrKey'),
×
41
            success: 200,
×
42
            schema: Schema\StatusCategory::class,
×
43
        );
×
44
    }
45
}
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