add more information to jira ticket (#812)

This commit is contained in:
Patrick Kuo 2018-05-16 13:14:04 +01:00 committed by GitHub
parent 346c05a72f
commit 478558bd8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,11 +58,14 @@ class CsrJiraClient(restClient: JiraRestClient, projectCode: String) : JiraClien
}
val data = mapOf("Requested Role Type" to certRole.name,
"Common Name" to subject.commonName,
"Organisation" to subject.organisation,
"Organisation Unit" to subject.organisationUnit,
"State" to subject.state,
"Nearest City" to subject.locality,
"Country" to subject.country,
"Email" to email)
"Email" to email,
"X500 Name" to subject.toString())
val ticketDescription = data.filter { it.value != null }.map { "${it.key}: ${it.value}" }.joinToString("\n") + "\n\n{code}$request{code}"