com.atlassian.jira.rest.v2.issue
Class IssueLinkTypeResource

java.lang.Object
  extended by com.atlassian.jira.rest.v2.issue.IssueLinkTypeResource

public class IssueLinkTypeResource
extends Object

Rest resource to retrieve a list of issue link types.

Since:
v4.3

Constructor Summary
IssueLinkTypeResource(IssueLinkTypeService issueLinkTypeService, JiraAuthenticationContext authenticationContext, I18nHelper i18n, ContextUriInfo contextUriInfo, com.atlassian.plugins.rest.common.util.RestUrlBuilder restUrlBuilder)
           
 
Method Summary
 javax.ws.rs.core.Response createIssueLinkType(IssueLinkTypeJsonBean linkTypeBean)
          Create a new issue link type.
 javax.ws.rs.core.Response deleteIssueLinkType(String issueLinkTypeIdString)
          Delete the specified issue link type.
 javax.ws.rs.core.Response getIssueLinkType(String issueLinkTypeIdString)
          Returns for a given issue link type id all information about this issue link type.
 javax.ws.rs.core.Response getIssueLinkTypes()
          Returns a list of available issue link types, if issue linking is enabled.
 javax.ws.rs.core.Response updateIssueLinkType(String issueLinkTypeIdString, IssueLinkTypeJsonBean linkTypeJsonBean)
          Update the specified issue link type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueLinkTypeResource

public IssueLinkTypeResource(IssueLinkTypeService issueLinkTypeService,
                             JiraAuthenticationContext authenticationContext,
                             I18nHelper i18n,
                             ContextUriInfo contextUriInfo,
                             com.atlassian.plugins.rest.common.util.RestUrlBuilder restUrlBuilder)
Method Detail

getIssueLinkTypes

public javax.ws.rs.core.Response getIssueLinkTypes()
Returns a list of available issue link types, if issue linking is enabled. Each issue link type has an id, a name and a label for the outward and inward link relationship.

Returns:
a list of available issue link types.

createIssueLinkType

public javax.ws.rs.core.Response createIssueLinkType(IssueLinkTypeJsonBean linkTypeBean)
Create a new issue link type.


getIssueLinkType

public javax.ws.rs.core.Response getIssueLinkType(String issueLinkTypeIdString)
Returns for a given issue link type id all information about this issue link type.

Returns:
returns information about an issue link type. Containing the id, name and inward and outward description for this link.

deleteIssueLinkType

public javax.ws.rs.core.Response deleteIssueLinkType(String issueLinkTypeIdString)
Delete the specified issue link type.

Returns:
Returns NO_CONTENT if successful.

updateIssueLinkType

public javax.ws.rs.core.Response updateIssueLinkType(String issueLinkTypeIdString,
                                                     IssueLinkTypeJsonBean linkTypeJsonBean)
Update the specified issue link type.



Copyright © 2002-2014 Atlassian. All Rights Reserved.