• 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/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
     * @return list<Schema\StatusDetails>
19
     */
20
    public function getStatuses(): array
×
21
    {
22
        return $this->call(
×
23
            uri: '/rest/api/3/status',
×
24
            method: 'get',
×
25
            success: 200,
×
26
            schema: [Schema\StatusDetails::class],
×
27
        );
×
28
    }
29

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