Skip to content

Commit

Permalink
add timeEstimate
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Jul 29, 2024
1 parent 4410259 commit 8920689
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ JPMetamodelGenerator >> defineProperties [
issue property: #id type: #Number.
issue property: #created type: #Object.
issue property: #timespent type: #Object.
issue property: #timeEstimate type: #Object.
issue property: #timeOriginalEstimate type: #Object.
issue property: #timespent type: #Object.
issue property: #labels type: #Object.

issueType property: #id type: #Number.
Expand Down Expand Up @@ -86,7 +89,7 @@ JPMetamodelGenerator >> defineProperties [
user property: #emailAddress type: #String.
user property: #name type: #String.
user property: #accountType type: #String.
user withEqualityCheckOn: { #accountId }.
user withEqualityCheckOn: { #accountId }
]

{ #category : 'definition' }
Expand Down
33 changes: 33 additions & 0 deletions src/JiraPharoAPI-Model/JPIssue.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
| `key` | `String` | nil | |
| `labels` | `Object` | nil | |
| `summary` | `String` | nil | |
| `timeEstimate` | `Object` | nil | |
| `timeOriginalEstimate` | `Object` | nil | |
| `timespent` | `Object` | nil | |
| `timespent` | `Object` | nil | |
"
Expand All @@ -41,6 +44,8 @@ Class {
'#id => FMProperty',
'#created => FMProperty',
'#timespent => FMProperty',
'#timeEstimate => FMProperty',
'#timeOriginalEstimate => FMProperty',
'#labels => FMProperty',
'#components => FMMany type: #JPComponent opposite: #issue',
'#worklogs => FMMany type: #JPWorklog opposite: #issue',
Expand Down Expand Up @@ -244,6 +249,34 @@ JPIssue >> summary: anObject [
summary := anObject
]

{ #category : 'accessing' }
JPIssue >> timeEstimate [

<FMProperty: #timeEstimate type: #Object>
<generated>
^ timeEstimate
]

{ #category : 'accessing' }
JPIssue >> timeEstimate: anObject [
<generated>
timeEstimate := anObject
]

{ #category : 'accessing' }
JPIssue >> timeOriginalEstimate [

<FMProperty: #timeOriginalEstimate type: #Object>
<generated>
^ timeOriginalEstimate
]

{ #category : 'accessing' }
JPIssue >> timeOriginalEstimate: anObject [
<generated>
timeOriginalEstimate := anObject
]

{ #category : 'accessing' }
JPIssue >> timespent [

Expand Down
8 changes: 8 additions & 0 deletions src/JiraPharoAPI/JiraPharoAPI.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ JiraPharoAPI >> configureReaderForJiraIssue: reader [
cmp at: #name ifPresent: [ :t | localComponent name: t ].

localComponent ]) ].
value at: #timeestimate ifPresent: [ :timeestimate |
timeestimate ifNotNil: [
pharoIssue timeEstimate: timeestimate seconds ] ].
value
at: #timeoriginalestimate
ifPresent: [ :timeoriginalestimate |
timeoriginalestimate ifNotNil: [
pharoIssue timeOriginalEstimate: timeoriginalestimate seconds ] ].
value
at: #project
ifPresent: [ :project |
Expand Down

0 comments on commit 8920689

Please sign in to comment.