[JIRA] (JENKINS-57465) Add support for fields in RocketChat attachments

5 views
Skip to first unread message

brian@jaxzin.com (JIRA)

unread,
May 14, 2019, 11:52:02 AM5/14/19
to jenkinsc...@googlegroups.com
Brian Jackson created an issue
 
Jenkins / New Feature JENKINS-57465
Add support for fields in RocketChat attachments
Issue Type: New Feature New Feature
Assignee: Martin Reinhardt
Components: rocket-chat-notifier-plugin
Created: 2019-05-14 15:51
Priority: Major Major
Reporter: Brian Jackson

Add support for the fields property of attachments as documented here:

https://rocket.chat/docs/developer-guides/rest-api/chat/postmessage/#attachment-field-objects

 

Possible implementation:
Create a new class named Field here: https://github.com/jenkinsci/rocketchatnotifier-plugin/tree/develop/src/main/java/jenkins/plugins/rocketchatnotifier/model

The java property (field + getter/setters) of type List<Field> with a proper @JsonProperty annotation would need to be added to: https://github.com/jenkinsci/rocketchatnotifier-plugin/blob/develop/src/main/java/jenkins/plugins/rocketchatnotifier/model/MessageAttachment.java

The rest of the code will likely remain untouched since it's a property of MessageAttachment which is already used implicitly in classes like RocketChatClientImpl and RocketChatClientCallBuilder

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

hypery2k@web.de (JIRA)

unread,
Jul 3, 2019, 10:52:01 PM7/3/19
to jenkinsc...@googlegroups.com
Martin Reinhardt assigned an issue to Brian Jackson
Change By: Martin Reinhardt
Assignee: Martin Reinhardt Brian Jackson

hypery2k@web.de (JIRA)

unread,
Jul 3, 2019, 10:52:02 PM7/3/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages