public class SprintsWebHook extends Object
public SprintsWebHook setPrefixList(List<String> fromPrefixList)
fromPrefixList
- prefix as List of Stringpublic String getPrefix()
public SprintsWebHook setPrefix(String fromPrefix)
fromPrefix
- prefix for the Actionpublic String getStatus()
public SprintsWebHook setStatus(String fromStatus)
fromStatus
- Status to update in Sprints Item/ Feed to updatedpublic String getNotes()
public SprintsWebHook setNotes(String fromNotes)
fromNotes
- Comment to be added in Sprints Itempublic String getItemName()
public SprintsWebHook setItemName(String fromItemName)
fromItemName
- Sprints Item Namepublic String getItemDesc()
public SprintsWebHook setItemDesc(String fromItemDesc)
fromItemDesc
- Description of the Sprints Itempublic String getPriority()
public SprintsWebHook setPriority(String fromPriority)
fromPriority
- Priority to be updated for Sprints Itempublic String getAssignee()
public SprintsWebHook setAssignee(String fromAssignee)
fromAssignee
- Assignee of the Sprints Itempublic String getItemType()
public SprintsWebHook setItemType(String fromItemType)
fromItemType
- Type of Sprints Item Type to createpublic String getMailId()
public SprintsWebHook setMailId()
public boolean isAttachmentNeeded()
public SprintsWebHook setAttachmentNeeded(boolean attachmentNeeded)
attachmentNeeded
- does api call need to add build log as attachmentpublic SprintsWebHook setParamMap(HashMap<String,Object> fromParamMap)
fromParamMap
- Api param Mappublic HashMap<String,AttachmentUtil> getAttachMap()
public SprintsWebHook setAttachMap()
public hudson.model.Run<?,?> getRun()
public void setRun(hudson.model.Run<?,?> runObj)
runObj
- Run Object of the Buildpublic hudson.model.BuildListener getBuildListener()
public void setBuildListener(hudson.model.BuildListener buildListener)
buildListener
- Receives events that happen during a buildpublic hudson.model.TaskListener getTaskListener()
public SprintsWebHook setTaskListener(hudson.model.TaskListener taskListener)
taskListener
- Receives events that happen during a buildpublic static SprintsWebHook getInstanceForCreateItem(hudson.model.Run<?,?> fromrun, hudson.model.TaskListener fromlistener, String fromprefix, String fromitemName, String fromitemDesc, String fromitemType, String fromitemAssignee, boolean fromisAttachmentNeeded) throws Exception
fromrun
- Run Object of the Buildfromlistener
- listener Receives events that happen during a buildfromprefix
- For which sprint Item to createfromitemName
- Name of the Sprints ItemfromitemDesc
- Sprints Item DescriptionfromitemType
- Sprints Item TypefromitemAssignee
- Sprints Item AssigneefromisAttachmentNeeded
- Need to Add build log as a Attachment while create the Sprints ItemException
- Throws When an Runtime error Occurspublic static SprintsWebHook getInstatnceForUpdateStatus(hudson.model.Run<?,?> fromrun, hudson.model.TaskListener fromlistener, String fromprefix, String fromstatus, boolean fromisFeedStatus) throws Exception
fromrun
- Run Object of the Buildfromlistener
- listener Receives events that happen during a buildfromprefix
- prefix for which Sprint Item Status to Update/ Feed status to be updatefromstatus
- Sprints Item Status/ Feed status to updatefromisFeedStatus
- is Insatnce for feed statusException
- Throws When an Runtime error Occurspublic static SprintsWebHook getInstatnceForUpdatePriority(hudson.model.Run<?,?> fromrun, hudson.model.TaskListener fromlistener, String fromprefix, String frompriority) throws Exception
fromrun
- Run Object of the Buildfromlistener
- listener Receives events that happen during a buildfromprefix
- prefix for for which Sprint Item Priority to be Updatedfrompriority
- priority to UpdateException
- Throws When an Runtime error Occurspublic static SprintsWebHook getInstanceForAddComment(hudson.model.Run<?,?> fromrun, hudson.model.TaskListener fromlistener, String fromprefix, String fromnotes, boolean fromisAttachmentNeeded) throws Exception
fromrun
- Run Object of the Buildfromlistener
- listener Receives events that happen during a buildfromprefix
- prefix for in which Sprint Item Comment to Addfromnotes
- Comment to addfromisAttachmentNeeded
- is Build log need to add along with commentException
- Throws When an Runtime error Occurspublic static SprintsWebHook getInstanceForFetchStatus(String fromprefix) throws Exception
fromprefix
- Prefix for ActionException
- Throws exception when error occurs at RunTimepublic String updateItemStatus() throws Exception
Exception
- Throws When an Runtime error Occurspublic String createItem() throws Exception
Exception
- Throws When an Runtime error Occurspublic boolean addFeedStatus() throws Exception
Exception
- Throws When an Runtime error Occurspublic String updateItempriority() throws Exception
Exception
- Throws When an Runtime error Occurspublic List<String> getStatusInPortal() throws Exception
Exception
- Throws When an Runtime error Occurspublic Object addComment() throws Exception
Exception
- Throws When an Runtime error OccursCopyright © 2016–2021. All rights reserved.