Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PORT-5598 | Jira integration - support sprints | Change priority to name #804

Open
wants to merge 86 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
a3d6380
Implemeneted support for sprints
lordsarcastic Jul 10, 2024
2a2811c
Changed priority in issue to be name
lordsarcastic Jul 10, 2024
2d3f527
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Jul 10, 2024
7121711
Implemented support for sprint states and issues source
lordsarcastic Jul 16, 2024
be33aef
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Jul 16, 2024
0367e78
Fix type cast attribute overlap error
lordsarcastic Jul 16, 2024
9307d15
Formatted port-app-config
lordsarcastic Jul 16, 2024
b9abc49
Added new mapping for board url
lordsarcastic Jul 18, 2024
75a090a
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Jul 18, 2024
67966a1
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Jul 23, 2024
6b6cb82
Fixed issues on jira integration
lordsarcastic Jul 26, 2024
58f9984
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Jul 26, 2024
1fe260f
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Jul 31, 2024
ec6c1a0
Implemented processing for all webhook events
lordsarcastic Aug 1, 2024
320caa2
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Aug 1, 2024
32d82d3
Fix unclosed pagination for sprint
lordsarcastic Aug 1, 2024
1a6a376
Fix bugs in webhook
lordsarcastic Aug 1, 2024
90f4071
Fixed bug in deleting entities
lordsarcastic Aug 2, 2024
db696f1
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Aug 6, 2024
5df8c3d
Merge branch 'main' into port-5598
mk-armah Aug 9, 2024
ff31969
Fix Nonetype error
lordsarcastic Aug 14, 2024
41e7fcc
Bumped application version
lordsarcastic Aug 14, 2024
a447370
Update changelog
lordsarcastic Aug 14, 2024
69458cc
Merge branch 'port-5598' of github.com:port-labs/ocean into port-5598
lordsarcastic Aug 19, 2024
91b406d
Remove sourcing issues from boards
lordsarcastic Aug 19, 2024
4362377
Ran formatting
lordsarcastic Aug 19, 2024
df881df
Chore: Removed boards entirely
lordsarcastic Aug 26, 2024
88899ba
Implemeneted support for sprints
lordsarcastic Jul 10, 2024
ac6d419
Changed priority in issue to be name
lordsarcastic Jul 10, 2024
0be072f
Implemented support for sprint states and issues source
lordsarcastic Jul 16, 2024
d9d4f72
Fix type cast attribute overlap error
lordsarcastic Jul 16, 2024
8560691
Formatted port-app-config
lordsarcastic Jul 16, 2024
b19e8b7
Added new mapping for board url
lordsarcastic Jul 18, 2024
d4b0242
Fixed issues on jira integration
lordsarcastic Jul 26, 2024
a616d5b
Implemented processing for all webhook events
lordsarcastic Aug 1, 2024
f72fd3e
Fix unclosed pagination for sprint
lordsarcastic Aug 1, 2024
1158543
Fix bugs in webhook
lordsarcastic Aug 1, 2024
d2fa837
Fixed bug in deleting entities
lordsarcastic Aug 2, 2024
d761c9e
[Integration][Pagerduty] Fix incident default mapping and blueprint …
Tankilevitch Aug 5, 2024
fd9cf23
PORT-9572 Update the default JQL provided by the JIRA integration (#868)
MPTG94 Aug 5, 2024
e97e3ab
[AWS] Bug fix global resources not synced for all accounts (#845)
shalev007 Aug 5, 2024
59cdfa6
[Integration][AWS] throw error if no permissions on region (#889)
shalev007 Aug 8, 2024
012474c
Remove sourcing issues from boards
lordsarcastic Aug 19, 2024
b755efa
Ran formatting
lordsarcastic Aug 19, 2024
52cd217
Chore: Removed boards entirely
lordsarcastic Aug 26, 2024
6a5a123
Merge branch 'port-5598' of github.com:port-labs/ocean into port-5598
lordsarcastic Aug 26, 2024
fd1731d
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Aug 26, 2024
f14d717
Merge branch 'main' into port-5598
PeyGis Sep 4, 2024
6aa8f99
Fix: Fixed ingesting issues with sprint
lordsarcastic Sep 5, 2024
028eb1a
Fix: Single quote causing mapping to not be applied
lordsarcastic Sep 5, 2024
266256a
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Sep 11, 2024
5eb0eb2
Chore: Made ingestion faster
lordsarcastic Sep 11, 2024
04de891
Fix: Lint issues
lordsarcastic Sep 11, 2024
6742a22
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Sep 13, 2024
4423064
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Sep 19, 2024
c9e5345
Added changelog information
lordsarcastic Sep 19, 2024
4fca62a
Bumped version
lordsarcastic Sep 19, 2024
264faa7
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Sep 25, 2024
64ecbd1
Chore: bumped version
lordsarcastic Sep 25, 2024
ebe15f9
Chore: Removed sprints from integration
lordsarcastic Oct 4, 2024
c74edb7
Fix: Bug on params for issues
lordsarcastic Oct 7, 2024
444d177
Fix: Bug on params for issues
lordsarcastic Oct 8, 2024
80b388b
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Oct 10, 2024
a572710
Merge branch 'main' into port-5598
PeyGis Oct 14, 2024
d4f36f6
Fix: Changelog, blueprints and method name
lordsarcastic Oct 14, 2024
4f8ca50
Merge branch 'main' into port-5598
PeyGis Oct 14, 2024
4602bd1
Implemented tests for Jira
lordsarcastic Oct 17, 2024
bb26949
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Oct 18, 2024
1eaf4fb
Merge branch 'main' into port-5598
PeyGis Oct 21, 2024
bd6c269
Fixed bug in tests
lordsarcastic Oct 21, 2024
8b6acc5
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Oct 22, 2024
ec3727f
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Oct 22, 2024
8c9c29a
Bumped integration version and ocean dependency
lordsarcastic Oct 22, 2024
34acfc9
Updated changelog
lordsarcastic Oct 22, 2024
8e34aa1
Fix: Lint errors
lordsarcastic Oct 22, 2024
19f49bb
Fix: Uncomment items in spec.yaml file
lordsarcastic Oct 22, 2024
1879b0b
Fix: commented code
lordsarcastic Oct 22, 2024
52d6a8c
Chore: Adjusted fixtures data
lordsarcastic Oct 22, 2024
bdf93d1
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Oct 23, 2024
f1f8495
Bumped version
lordsarcastic Oct 23, 2024
f6668e6
Chore: Fix lint and lock file
lordsarcastic Oct 23, 2024
bae8656
Chore: Reverted changelog changes
lordsarcastic Oct 23, 2024
8d663f6
Chore: Updated changelog
lordsarcastic Oct 23, 2024
9ae1adc
Merge remote-tracking branch 'origin/main' into port-5598
lordsarcastic Oct 23, 2024
4dd0f85
Bumped integration version due to merge
lordsarcastic Oct 23, 2024
0886010
Chore: Fixed changelog
lordsarcastic Oct 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 99 additions & 1 deletion integrations/jira/.port/resources/blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,101 @@
"type": "string",
"format": "url",
"description": "URL to the project in Jira"
},
"totalIssues": {
"title": "Total Issues",
"type": "number",
"description": "The total number of issues in the project"
}
}
},
"calculationProperties": {}
"mirrorProperties": {},
"calculationProperties": {},
"relations": {}
},
{
"identifier": "jiraBoard",
"title": "Jira Board",
"description": "This blueprint represents a Jira board",
"icon": "Jira",
"schema": {
"properties": {
"url": {
"title": "Board URL",
"type": "string",
"format": "url",
"description": "URL to the board in Jira"
},
"type": {
"title": "Type",
"type": "string",
"description": "The type of the board"
}
},
"required": []
},
"mirrorProperties": {},
"calculationProperties": {},
"relations": {
"project": {
"target": "jiraProject",
"title": "Project",
"description": "The Jira project that contains this board",
"required": false,
"many": false
}
}
},
{
"identifier": "jiraSprint",
"title": "Jira Sprint",
"description": "This blueprint represents a Jira sprint",
"icon": "Jira",
"schema": {
"properties": {
"url": {
"title": "Sprint URL",
"type": "string",
"format": "url",
"description": "URL to the sprint in Jira"
},
"state": {
"title": "State",
"type": "string",
"description": "The state of the sprint",
"enum": ["active", "closed", "future"],
"enumColors": {
"active": "green",
"closed": "red",
"future": "blue"
}
},
"startDate": {
"title": "Start Date",
"type": "string",
"description": "The start date of the sprint",
"format": "date-time"
},
"endDate": {
"title": "End Date",
"type": "string",
"description": "The end date of the sprint",
"format": "date-time"
}
},
"required": []
},
"mirrorProperties": {},
"calculationProperties": {},
"relations": {
"board": {
"target": "jiraBoard",
"title": "Board",
"description": "The Jira board associated with this sprint",
"required": false,
"many": false
}
}
},
{
"identifier": "jiraIssue",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking maybe we should add a property with sprint, where the description of the property will point the user to the docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs already contains how to add the sprint property. You think we should add it by default?

Expand Down Expand Up @@ -89,6 +180,13 @@
},
"calculationProperties": {},
"relations": {
"sprint": {
"target": "jiraSprint",
"title": "Sprint",
"description": "The Jira sprint that contains this issue",
"required": false,
"many": false
},
lordsarcastic marked this conversation as resolved.
Show resolved Hide resolved
"project": {
"target": "jiraProject",
"title": "Project",
Expand Down
39 changes: 38 additions & 1 deletion integrations/jira/.port/resources/port-app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,46 @@ resources:
blueprint: '"jiraProject"'
properties:
url: (.self | split("/") | .[:3] | join("/")) + "/projects/" + .key
totalIssues: .insight.totalIssueCount

- kind: board
selector:
query: "true"
port:
entity:
mappings:
identifier: .id | tostring
title: .name
blueprint: '"jiraBoard"'
properties:
url: (.self | split("/") | .[:3] | join("/")) + "/jira/software/c/projects/" + .location.projectKey + "/boards/" + (.id | tostring)
type: .type
relations:
project: .location.projectId | tostring

- kind: sprint
selector:
query: "true"
port:
entity:
mappings:
identifier: .id | tostring
title: .name
blueprint: '"jiraSprint"'
properties:
url: .self
state: .state
startDate: .startDate
endDate: .endDate
relations:
board: .originBoardId | tostring

- kind: issue
selector:
query: "true"
jql: "statusCategory != done"
source: "sprint"
sprintState: "active"
port:
entity:
mappings:
Expand All @@ -30,11 +66,12 @@ resources:
assignee: .fields.assignee.emailAddress
reporter: .fields.reporter.emailAddress
creator: .fields.creator.emailAddress
priority: .fields.priority.id
priority: .fields.priority.name
labels: .fields.labels
created: .fields.created
updated: .fields.updated
relations:
sprint: .fields.sprint.id | tostring
project: .fields.project.key
parentIssue: .fields.parent.key
subtasks: .fields.subtasks | map(.key)
2 changes: 2 additions & 0 deletions integrations/jira/.port/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ features:
section: Project management
resources:
- kind: project
- kind: board
- kind: sprint
- kind: issue
configurations:
- name: appHost
Expand Down
Loading