You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,17 +65,17 @@ you can choose loads environment variables either 'dotenv' or 'array'.
65
65
copy .env.example file to .env on your project root.
66
66
67
67
```sh
68
-
JIRA_HOST='https://your-jira.atlassian.net'
69
-
JIRA_USER='jira-username'
68
+
JIRAAPI_V3_HOST='https://your-jira.atlassian.net'
69
+
JIRAAPI_V3_USER='jira-username'
70
70
PERSONAL_ACCESS_TOKEN='your-access-token-here'
71
-
# to enable session cookie authorization
72
-
#COOKIE_AUTH_ENABLED=true
73
-
#COOKIE_FILE=storage/jira-cookie.txt
74
-
# if you are behind a proxy, add proxy settings
75
-
PROXY_SERVER='your-proxy-server'
76
-
PROXY_PORT='proxy-port'
77
-
PROXY_USER='proxy-username'
78
-
PROXY_PASSWORD='proxy-password'
71
+
## to enable session cookie authorization
72
+
#JIRAAPI_V3_COOKIE_AUTH_ENABLED=true
73
+
#JIRAAPI_V3_COOKIE_FILE=storage/jira-cookie.txt
74
+
## if you are behind a proxy, add proxy settings
75
+
JIRAAPI_V3_PROXY_SERVER='your-proxy-server'
76
+
JIRAAPI_V3_PROXY_PORT='proxy-port'
77
+
JIRAAPI_V3_PROXY_USER='proxy-username'
78
+
JIRAAPI_V3_PROXY_PASSWORD='proxy-password'
79
79
```
80
80
**CAUTION**
81
81
this library not fully supported JIRA REST API V3 yet.
@@ -647,7 +647,7 @@ CODE;
647
647
$descV3 = new AtlassianDocumentFormat($doc);
648
648
649
649
$issueField->setProjectKey('TEST')
650
-
->setSummary('something's wrong')
650
+
->setSummary('something\'s wrong')
651
651
->setAssigneeNameAsString('lesstif')
652
652
->setPriorityNameAsString('Highest')
653
653
->setIssueTypeAsString('Story')
@@ -689,7 +689,7 @@ try {
689
689
$descV3 = new AtlassianDocumentFormat($doc);
690
690
691
691
$issueField->setProjectKey('TEST')
692
-
->setSummary('something's wrong')
692
+
->setSummary('something\'s wrong')
693
693
->setAssigneeNameAsString('lesstif')
694
694
->setPriorityNameAsString('Critical')
695
695
->setIssueTypeAsString('Bug')
@@ -740,7 +740,7 @@ try {
740
740
$descV3 = new AtlassianDocumentFormat($doc);
741
741
742
742
$issueFieldOne->setProjectKey('TEST')
743
-
->setSummary('something's wrong')
743
+
->setSummary('something\'s wrong')
744
744
->setPriorityNameAsString('Critical')
745
745
->setIssueTypeAsString('Bug')
746
746
->setDescription($descV3);
@@ -804,7 +804,7 @@ try {
804
804
$descV3 = new AtlassianDocumentFormat(doc);
805
805
806
806
$issueField->setProjectKey('TEST')
807
-
->setSummary('something's wrong')
807
+
->setSummary('something\'s wrong')
808
808
->setAssigneeNameAsString('lesstif')
809
809
->setPriorityNameAsString('Critical')
810
810
->setDescription($descV3)
@@ -878,7 +878,7 @@ try {
878
878
$issueField = new IssueField();
879
879
880
880
$issueField->setProjectKey('TEST')
881
-
->setSummary('something's wrong')
881
+
->setSummary('something\'s wrong')
882
882
->setAssigneeNameAsString('lesstif')
883
883
->setPriorityNameAsString('Critical')
884
884
->setIssueTypeAsString('Bug')
@@ -1305,7 +1305,7 @@ you should pass that status name to `setTransitionName`
1305
1305
1306
1306
i.e. `$transition->setTransitionName('Some Status')`
1307
1307
1308
-
[See Jira API reference](https://docs.atlassian.com/software/jira/docs/api/REST/latest/#api/2/issue-doTransition)
1308
+
[See Jira API reference](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post)
1309
1309
1310
1310
```php
1311
1311
<?php
@@ -1319,7 +1319,7 @@ $issueKey = 'TEST-879';
1319
1319
1320
1320
try {
1321
1321
$transition = new Transition();
1322
-
$transition->setTransitionName('Resolved');
1322
+
$transition->setTransitionName('In Progress');
1323
1323
$transition->setCommentBody('performing the transition via REST API.');
1324
1324
1325
1325
$issueService = new IssueService();
@@ -1627,7 +1627,7 @@ try {
1627
1627
<?php
1628
1628
require 'vendor/autoload.php';
1629
1629
1630
-
// Worklog example for API V3 assumes JIRA_REST_API_V3=true is configured in
1630
+
// Worklog example for API V3 assumes JIRAAPI_V3_REST_API_V3=true is configured in
0 commit comments