Skip to content

Commit d710a74

Browse files
committed
Nested id and name property workaround
1 parent 5588f4b commit d710a74

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

assets/javascripts/gtt_print.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,20 @@ $(function() {
111111
}
112112
break;
113113

114-
case 'assigned_to':
115-
case 'author':
116-
case 'priority':
117-
case 'project':
118-
case 'status':
119-
case 'tracker':
120-
requestData.attributes[obj.name] = data.issue[obj.name].name;
114+
case 'assigned_to.id':
115+
case 'assigned_to.name':
116+
case 'author.id':
117+
case 'author.name':
118+
case 'priority.id':
119+
case 'priority.name':
120+
case 'project.id':
121+
case 'project.name':
122+
case 'status.id':
123+
case 'status.name':
124+
case 'tracker.id':
125+
case 'tracker.name':
126+
var prop = obj.name.split(".");
127+
requestData.attributes[obj.name] = data.issue[prop[0]][prop[1]];
121128
break;
122129

123130
case 'created_on':

0 commit comments

Comments
 (0)