• 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/Schema/ApprovalConfiguration.php
1
<?php
2

3
namespace Jira\Client\Schema;
4

5
use Jira\Client\Dto;
6

7
/**
8
 * The approval configuration of a status within a workflow.
9
 * Applies only to Jira Service Management approvals.
10
 */
11
final readonly class ApprovalConfiguration extends Dto
12
{
13
    public function __construct(
×
14
        /**
15
         * Whether the approval configuration is active.
16
         * 
17
         * @var 'true'|'false'
18
         */
19
        public string $active,
20

21
        /**
22
         * How the required approval count is calculated.
23
         * It may be configured to require a specific number of approvals, or approval by a percentage of approvers.
24
         * If the approvers source field is Approver groups, you can configure how many approvals per group are required for the request to be approved.
25
         * The number will be the same across all groups.
26
         * 
27
         * @var 'number'|'percent'|'numberPerPrincipal'
28
         */
29
        public string $conditionType,
30

31
        /**
32
         * The number or percentage of approvals required for a request to be approved.
33
         * If `conditionType` is `number`, the value must be 20 or less.
34
         * If `conditionType` is `percent`, the value must be 100 or less.
35
         */
36
        public string $conditionValue,
37

38
        /** The custom field ID of the "Approvers" or "Approver Groups" field. */
39
        public string $fieldId,
40

41
        /** The numeric ID of the transition to be executed if the request is approved. */
42
        public string $transitionApproved,
43

44
        /** The numeric ID of the transition to be executed if the request is declined. */
45
        public string $transitionRejected,
46

47
        /**
48
         * A list of roles that should be excluded as possible approvers.
49
         * 
50
         * @var ?list<string>
51
         */
52
        public ?array $exclude = null,
53

54
        /**
55
         * The custom field ID of the field used to pre-populate the Approver field.
56
         * Only supports the "Affected Services" field.
57
         */
58
        public ?string $prePopulatedFieldId = null,
59
    ) {
60
    }
×
61
}
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