create_ticket 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/create_ticket.rb +4 -3
- data/lib/create_ticket/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 268a2cbc8d1bfccf7a46e181fc3e68d4b56e1cea
|
4
|
+
data.tar.gz: 7f2e32537907f59e4b40c7e46511a67400d5b57c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0369e9d60fe0a132d9fcd3bc54064be70ace0d06f227a1d6cdc4ef601afc880864e3aba3494eee25db3910ade6d315d044ceee12520fc1f18413d3f5e88a2ad3
|
7
|
+
data.tar.gz: 83281923c8b7694bae1de07d6fd8e0e66f4931a07608f1ded5886ace5b6cf10f3c382a036ce04d2a0f6cbd8838e0f5fad61f702f7043a5c84f73f6eb01a083a5
|
data/lib/create_ticket.rb
CHANGED
@@ -49,15 +49,16 @@ class CreateTicket
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def fields
|
52
|
-
{
|
52
|
+
effs = {
|
53
53
|
project: { key: project },
|
54
54
|
issuetype: { name: issue_type },
|
55
55
|
summary: summary,
|
56
56
|
description: description,
|
57
57
|
assignee: { name: assignee },
|
58
|
-
reporter: { name: assignee }
|
59
|
-
duedate: duedate
|
58
|
+
reporter: { name: assignee }
|
60
59
|
}.merge(custom_fields)
|
60
|
+
effs[:duedate] = duedate unless duedate.nil?
|
61
|
+
effs
|
61
62
|
end
|
62
63
|
|
63
64
|
def jira_ticket_json
|