• 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/ProjectClassificationLevels.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 ProjectClassificationLevels
10
{
11
    /**
12
     * Returns the default data classification for a project
13
     * 
14
     * **"Permissions" required:**
15
     * 
16
     *  - *Browse Projects* "project permission" for the project
17
     *  - *Administer projects* "project permission" for the project
18
     *  - *Administer jira* "global permission".
19
     * 
20
     * @link https://confluence.atlassian.com/x/yodKLg
21
     * @link https://confluence.atlassian.com/x/x4dKLg
22
     * 
23
     * @param string $projectIdOrKey The project ID or project key (case-sensitive).
24
     */
25
    public function getDefaultProjectClassification(
×
26
        string $projectIdOrKey,
27
    ): true {
28
        return $this->call(
×
29
            uri: '/rest/api/3/project/{projectIdOrKey}/classification-level/default',
×
30
            method: 'get',
×
31
            path: compact('projectIdOrKey'),
×
32
            success: 200,
×
33
            schema: true,
×
34
        );
×
35
    }
36

37
    /**
38
     * Updates the default data classification level for a project
39
     * 
40
     * **"Permissions" required:**
41
     * 
42
     *  - *Administer projects* "project permission" for the project
43
     *  - *Administer jira* "global permission".
44
     * 
45
     * @link https://confluence.atlassian.com/x/yodKLg
46
     * @link https://confluence.atlassian.com/x/x4dKLg
47
     * 
48
     * @param string $projectIdOrKey The project ID or project key (case-sensitive).
49
     */
50
    public function updateDefaultProjectClassification(
×
51
        Schema\UpdateDefaultProjectClassificationBean $request,
52
        string $projectIdOrKey,
53
    ): true {
54
        return $this->call(
×
55
            uri: '/rest/api/3/project/{projectIdOrKey}/classification-level/default',
×
56
            method: 'put',
×
57
            body: $request,
×
58
            path: compact('projectIdOrKey'),
×
59
            success: 204,
×
60
            schema: true,
×
61
        );
×
62
    }
63

64
    /**
65
     * Remove the default data classification level for a project
66
     * 
67
     * **"Permissions" required:**
68
     * 
69
     *  - *Administer projects* "project permission" for the project
70
     *  - *Administer jira* "global permission".
71
     * 
72
     * @link https://confluence.atlassian.com/x/yodKLg
73
     * @link https://confluence.atlassian.com/x/x4dKLg
74
     * 
75
     * @param string $projectIdOrKey The project ID or project key (case-sensitive).
76
     */
77
    public function removeDefaultProjectClassification(
×
78
        string $projectIdOrKey,
79
    ): true {
80
        return $this->call(
×
81
            uri: '/rest/api/3/project/{projectIdOrKey}/classification-level/default',
×
82
            method: 'delete',
×
83
            path: compact('projectIdOrKey'),
×
84
            success: 204,
×
85
            schema: true,
×
86
        );
×
87
    }
88
}
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