Types

Link copied to clipboard
@Serializable
data class ChangeLogContainer(val histories: MutableList<ChangeLogEntry>)

A container for the changelog

Link copied to clipboard
@Serializable
data class ChangeLogEntry(val id: String, val author: JsonObject, val created: String, val items: List<ChangelogFieldEntry>)

A single changelog entry

Link copied to clipboard
@Serializable
data class ChangelogFieldEntry(val field: String, val fieldtype: String, val fieldId: String? = null, val from: String?, val to: String?, val fromString: String?, val toString: String?)

A field in the changelog returned by Jira

Link copied to clipboard
@Serializable
data class CommentQuery(var comments: List<JiraComment>, val startAt: Int, val total: Int)

Kotlin representation of the CommentQuery JSON

Link copied to clipboard
@Serializable
data class IssueBean(val expand: String, val id: String, val self: String, val key: String, val editmeta: JsonObject, val changelog: ChangeLogContainer, val fields: Map<String, JsonElement>)

Kotlin representation of the Issue JSON

Link copied to clipboard
data class IssueData(val imsProject: String, val expand: String, val jiraId: String, val self: String, val key: String, var editmeta: JsonObject, var changelog: ChangeLogContainer, val fields: MutableMap<String, JsonElement>, var names: JsonObject, var schema: JsonObject, val comments: MutableMap<String, JiraComment> = mutableMapOf()) : IncomingIssue

Data of a single issue from the API to the database

Link copied to clipboard
@Repository
interface IssueDataRepository : ReactiveMongoRepository<IssueData, ObjectId>

Repository for IssueData

Link copied to clipboard
@Service
class IssueDataService(val issuePileRepository: IssueDataRepository) : IssueDataRepository
Link copied to clipboard
@Serializable
data class IssueQuery(val expand: String, val id: String, val self: String, val key: String, val editmeta: JsonObject, val changelog: ChangeLogContainer, val fields: Map<String, JsonElement>, val names: JsonObject, val schema: JsonObject)

Kotlin representation of the Issue JSON

Link copied to clipboard
@Serializable
data class IssueQueryRequest(val fields: IssueQueryRequestFields)

Kotlin representation of the IssueQueryRequest JSON

Link copied to clipboard
@Serializable
data class IssueQueryRequestFields(val summary: String, val description: String, val issuetype: IssueTypeRequest, val project: ProjectRequest, val components: List<JsonElement>)

Kotlin representation of the IssueQueryRequest JSON

Link copied to clipboard
@Serializable
data class IssueTypeRequest(val name: String)

Kotlin representation of the IssueTypeRequest JSON

Link copied to clipboard
@Serializable
data class JiraComment(val id: String, val self: String, val author: JsonObject, val body: String, val updateAuthor: JsonObject, val created: String, val updated: String, val jsdPublic: Boolean? = null)

Kotlin representation of the Issue JSON

Link copied to clipboard

Intermediate representation of a single comment from Jira

Link copied to clipboard
class JiraTimelineItem(val id: String, val created: String, val author: JsonObject, val data: ChangelogFieldEntry) : IncomingTimelineItem

Intermediate representation of a single TimelineItem from Jira

Link copied to clipboard

TimelineItem maping between Jira and Gropius

Link copied to clipboard
@Serializable
data class ProjectQuery(var issues: List<IssueBean>, val startAt: Int, val total: Int, val names: JsonObject? = null, val schema: JsonObject? = null)

Kotlin representation of the ProjectQuery JSON

Link copied to clipboard
@Serializable
data class ProjectRequest(val key: String)

Kotlin representation of the ProjectRequest JSON

Link copied to clipboard
data class RepoDescription(val owner: String, val repo: String)

Object describing the identification for a GitHub repo

Link copied to clipboard
@Serializable
data class UserQuery(val timeZone: String)

Kotlin representation of the UserQuery JSON

Link copied to clipboard
@Serializable
data class ValueChangeLogContainer(val values: List<ChangeLogEntry>, val startAt: Int, val total: Int)

A container for the changelog

Functions

Link copied to clipboard
fun JsonElement.toBson(): BsonValue
fun JsonObject.toBson(): BsonDocument
Link copied to clipboard
fun BsonDocument.toKJson(): JsonObject
fun BsonValue.toKJson(): JsonElement