• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tylernathanreed / jira-client-php / 13834920235

13 Mar 2025 12:45PM UTC coverage: 71.089% (-2.2%) from 73.289%
13834920235

push

github

tylernathanreed
Merge branch 'master' of github.com:tylernathanreed/jira-client-php

3976 of 5593 relevant lines covered (71.09%)

9.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Schema/JiraIssueFields.php
1
<?php
2

3
namespace Jira\Client\Schema;
4

5
use Jira\Client\Dto;
6

7
final readonly class JiraIssueFields extends Dto
8
{
9
    public function __construct(
×
10
        /**
11
         * Add or clear a cascading select field:
12
         * 
13
         *  - To add, specify `optionId` for both parent and child
14
         *  - To clear the child, set its `optionId` to null
15
         *  - To clear both, set the parent's `optionId` to null.
16
         * 
17
         * @var ?list<JiraCascadingSelectField>
18
         */
19
        public ?array $cascadingSelectFields = null,
20

21
        /**
22
         * Add or clear a number field:
23
         * 
24
         *  - To add, specify a numeric `value`
25
         *  - To clear, set `value` to `null`.
26
         * 
27
         * @var ?list<JiraNumberField>
28
         */
29
        public ?array $clearableNumberFields = null,
30

31
        /**
32
         * Add or clear a color field:
33
         * 
34
         *  - To add, specify the color `name`.
35
         * Available colors are: `purple`, `blue`, `green`, `teal`, `yellow`, `orange`, `grey`, `dark purple`, `dark blue`, `dark green`, `dark teal`, `dark yellow`, `dark orange`, `dark grey`
36
         *  - To clear, set the color `name` to an empty string.
37
         * 
38
         * @var ?list<JiraColorField>
39
         */
40
        public ?array $colorFields = null,
41

42
        /**
43
         * Add or clear a date picker field:
44
         * 
45
         *  - To add, specify the date in `d/mmm/yy` format or ISO format `dd-mm-yyyy`
46
         *  - To clear, set `formattedDate` to an empty string.
47
         * 
48
         * @var ?list<JiraDateField>
49
         */
50
        public ?array $datePickerFields = null,
51

52
        /**
53
         * Add or clear the planned start date and time:
54
         * 
55
         *  - To add, specify the date and time in ISO format for `formattedDateTime`
56
         *  - To clear, provide an empty string for `formattedDateTime`.
57
         * 
58
         * @var ?list<JiraDateTimeField>
59
         */
60
        public ?array $dateTimePickerFields = null,
61

62
        /** Set the issue type field by providing an `issueTypeId`. */
63
        public ?JiraIssueTypeField $issueType = null,
64

65
        /**
66
         * Edit a labels field:
67
         * 
68
         *  - Options include `ADD`, `REPLACE`, `REMOVE`, or `REMOVE_ALL` for bulk edits
69
         *  - To clear labels, use the `REMOVE_ALL` option with an empty `labels` array.
70
         * 
71
         * @var ?list<JiraLabelsField>
72
         */
73
        public ?array $labelsFields = null,
74

75
        /**
76
         * Add or clear a multi-group picker field:
77
         * 
78
         *  - To add groups, provide an array of groups with `groupName`s
79
         *  - To clear all groups, use an empty `groups` array.
80
         * 
81
         * @var ?list<JiraMultipleGroupPickerField>
82
         */
83
        public ?array $multipleGroupPickerFields = null,
84

85
        /**
86
         * Assign or unassign multiple users to/from a field:
87
         * 
88
         *  - To assign, provide an array of user `accountId`s
89
         *  - To clear, set `users` to `null`.
90
         * 
91
         * @var ?list<JiraMultipleSelectUserPickerField>
92
         */
93
        public ?array $multipleSelectClearableUserPickerFields = null,
94

95
        /**
96
         * Add or clear a multi-select field:
97
         * 
98
         *  - To add, provide an array of options with `optionId`s
99
         *  - To clear, use an empty `options` array.
100
         * 
101
         * @var ?list<JiraMultipleSelectField>
102
         */
103
        public ?array $multipleSelectFields = null,
104

105
        /**
106
         * Edit a multi-version picker field like Fix Versions/Affects Versions:
107
         * 
108
         *  - Options include `ADD`, `REPLACE`, `REMOVE`, or `REMOVE_ALL` for bulk edits
109
         *  - To clear the field, use the `REMOVE_ALL` option with an empty `versions` array.
110
         * 
111
         * @var ?list<JiraMultipleVersionPickerField>
112
         */
113
        public ?array $multipleVersionPickerFields = null,
114

115
        /**
116
         * Edit a multi select components field:
117
         * 
118
         *  - Options include `ADD`, `REPLACE`, `REMOVE`, or `REMOVE_ALL` for bulk edits
119
         *  - To clear, use the `REMOVE_ALL` option with an empty `components` array.
120
         */
121
        public ?JiraMultiSelectComponentField $multiselectComponents = null,
122

123
        /** Edit the original estimate field. */
124
        public ?JiraDurationField $originalEstimateField = null,
125

126
        /** Set the priority of an issue by specifying a `priorityId`. */
127
        public ?JiraPriorityField $priority = null,
128

129
        /**
130
         * Add or clear a rich text field:
131
         * 
132
         *  - To add, provide `adfValue`.
133
         * Note that rich text fields only support ADF values
134
         *  - To clear, use an empty `richText` object
135
         * 
136
         * For ADF format details, refer to: "Atlassian Document Format".
137
         * 
138
         * @link https://developer.atlassian.com/cloud/jira/platform/apis/document/structure
139
         * 
140
         * @var ?list<JiraRichTextField>
141
         */
142
        public ?array $richTextFields = null,
143

144
        /**
145
         * Add or clear a single group picker field:
146
         * 
147
         *  - To add, specify the group with `groupName`
148
         *  - To clear, set `groupName` to an empty string.
149
         * 
150
         * @var ?list<JiraSingleGroupPickerField>
151
         */
152
        public ?array $singleGroupPickerFields = null,
153

154
        /**
155
         * Add or clear a single line text field:
156
         * 
157
         *  - To add, provide the `text` value
158
         *  - To clear, set `text` to an empty string.
159
         * 
160
         * @var ?list<JiraSingleLineTextField>
161
         */
162
        public ?array $singleLineTextFields = null,
163

164
        /**
165
         * Edit assignment for single select user picker fields like Assignee/Reporter:
166
         * 
167
         *  - To assign an issue, specify the user's `accountId`
168
         *  - To unassign an issue, set `user` to `null`
169
         *  - For automatic assignment, set `accountId` to `-1`.
170
         * 
171
         * @var ?list<JiraSingleSelectUserPickerField>
172
         */
173
        public ?array $singleSelectClearableUserPickerFields = null,
174

175
        /**
176
         * Add or clear a single select field:
177
         * 
178
         *  - To add, specify the option with an `optionId`
179
         *  - To clear, pass an option with `optionId` as `-1`.
180
         * 
181
         * @var ?list<JiraSingleSelectField>
182
         */
183
        public ?array $singleSelectFields = null,
184

185
        /**
186
         * Add or clear a single version picker field:
187
         * 
188
         *  - To add, specify the version with a `versionId`
189
         *  - To clear, set `versionId` to `-1`.
190
         * 
191
         * @var ?list<JiraSingleVersionPickerField>
192
         */
193
        public ?array $singleVersionPickerFields = null,
194

195
        /** Edit the time tracking field. */
196
        public ?JiraTimeTrackingField $timeTrackingField = null,
197

198
        /**
199
         * Add or clear a URL field:
200
         * 
201
         *  - To add, provide the `url` with the desired URL value
202
         *  - To clear, set `url` to an empty string.
203
         * 
204
         * @var ?list<JiraUrlField>
205
         */
206
        public ?array $urlFields = null,
207
    ) {
208
    }
×
209
}
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