• 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/WorkflowStatuses.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 WorkflowStatuses
10
{
11
    /**
12
     * Returns a list of all statuses associated with active workflows
13
     * 
14
     * This operation can be accessed anonymously
15
     * 
16
     * **"Permissions" required:** None.
17
     */
18
    public function getStatuses(): true
×
19
    {
20
        return $this->call(
×
21
            uri: '/rest/api/3/status',
×
22
            method: 'get',
×
23
            success: 200,
×
24
            schema: true,
×
25
        );
×
26
    }
27

28
    /**
29
     * Returns a status.
30
     * The status must be associated with an active workflow to be returned
31
     * 
32
     * If a name is used on more than one status, only the status found first is returned.
33
     * Therefore, identifying the status by its ID may be preferable
34
     * 
35
     * This operation can be accessed anonymously
36
     * 
37
     * "Permissions" required: None.
38
     * 
39
     * @param string $idOrName The ID or name of the status.
40
     */
41
    public function getStatus(
×
42
        string $idOrName,
43
    ): Schema\StatusDetails {
44
        return $this->call(
×
45
            uri: '/rest/api/3/status/{idOrName}',
×
46
            method: 'get',
×
47
            path: compact('idOrName'),
×
48
            success: 200,
×
49
            schema: Schema\StatusDetails::class,
×
50
        );
×
51
    }
52
}
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