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

3
namespace Jira\Client\Schema;
4

5
use Jira\Client\Dto;
6

7
/** Details about a workflow scheme. */
8
final readonly class WorkflowScheme extends Dto
9
{
10
    public function __construct(
×
11
        /**
12
         * The name of the default workflow for the workflow scheme.
13
         * The default workflow has *All Unassigned Issue Types* assigned to it in Jira.
14
         * If `defaultWorkflow` is not specified when creating a workflow scheme, it is set to *Jira Workflow (jira)*.
15
         */
16
        public ?string $defaultWorkflow = null,
17

18
        /** The description of the workflow scheme. */
19
        public ?string $description = null,
20

21
        /** Whether the workflow scheme is a draft or not. */
22
        public ?bool $draft = null,
23

24
        /** The ID of the workflow scheme. */
25
        public ?int $id = null,
26

27
        /**
28
         * The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair.
29
         * Note that an issue type can only be mapped to one workflow in a workflow scheme.
30
         * 
31
         * @var array<string,string>
32
         */
33
        public ?array $issueTypeMappings = null,
34

35
        /** The issue types available in Jira. */
36
        public ?IssueTypeDetails $issueTypes = null,
37

38
        /**
39
         * The date-time that the draft workflow scheme was last modified.
40
         * A modification is a change to the issue type-project mappings only.
41
         * This property does not apply to non-draft workflows.
42
         */
43
        public ?string $lastModified = null,
44

45
        /**
46
         * The user that last modified the draft workflow scheme.
47
         * A modification is a change to the issue type-project mappings only.
48
         * This property does not apply to non-draft workflows.
49
         */
50
        public ?User $lastModifiedUser = null,
51

52
        /**
53
         * The name of the workflow scheme.
54
         * The name must be unique.
55
         * The maximum length is 255 characters.
56
         * Required when creating a workflow scheme.
57
         */
58
        public ?string $name = null,
59

60
        /**
61
         * For draft workflow schemes, this property is the name of the default workflow for the original workflow scheme.
62
         * The default workflow has *All Unassigned Issue Types* assigned to it in Jira.
63
         */
64
        public ?string $originalDefaultWorkflow = null,
65

66
        /**
67
         * For draft workflow schemes, this property is the issue type to workflow mappings for the original workflow scheme, where each mapping is an issue type ID and workflow name pair.
68
         * Note that an issue type can only be mapped to one workflow in a workflow scheme.
69
         * 
70
         * @var array<string,string>
71
         */
72
        public ?array $originalIssueTypeMappings = null,
73

74
        public ?string $self = null,
75

76
        /**
77
         * Whether to create or update a draft workflow scheme when updating an active workflow scheme.
78
         * An active workflow scheme is a workflow scheme that is used by at least one project.
79
         * The following examples show how this property works:
80
         * 
81
         *  - Update an active workflow scheme with `updateDraftIfNeeded` set to `true`: If a draft workflow scheme exists, it is updated.
82
         * Otherwise, a draft workflow scheme is created
83
         *  - Update an active workflow scheme with `updateDraftIfNeeded` set to `false`: An error is returned, as active workflow schemes cannot be updated
84
         *  - Update an inactive workflow scheme with `updateDraftIfNeeded` set to `true`: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update
85
         * 
86
         * Defaults to `false`.
87
         */
88
        public ?bool $updateDraftIfNeeded = null,
89
    ) {
90
    }
×
91
}
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