maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MCHANGES-365) Add Link to Action
Date Wed, 30 Mar 2016 12:42:25 GMT

     [ https://issues.apache.org/jira/browse/MCHANGES-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Osipov updated MCHANGES-365:
------------------------------------
    Labels: close-pending  (was: )

> Add Link to Action
> ------------------
>
>                 Key: MCHANGES-365
>                 URL: https://issues.apache.org/jira/browse/MCHANGES-365
>             Project: Maven Changes Plugin
>          Issue Type: New Feature
>          Components: announcement
>    Affects Versions: 2.11
>            Reporter: dur
>              Labels: close-pending
>
> Add property link to class Action to support links in an announcment. 
> Property should copied in 
> {code}
>     /**
>      * Create an <code>Action</code> from an issue.
>      * 
>      * @param issue The issue to extract the information from
>      * @return An <code>Action</code>
>      */
>     public Action createAction( Issue issue )
>     {
>         Action action = new Action();
>         // @todo We need to add something like issue.getPresentationIdentifier() to be
able to support other IMSes
>         // beside JIRA
>         action.setIssue( issue.getKey() );
>         // Try to map the IMS-specific issue type to one that is used in a changes.xml
file
>         IssueType type;
>         if ( getIssueTypeMap().containsKey( issue.getType() ) )
>         {
>             type = getIssueTypeMap().get( issue.getType() );
>             action.setType( type.modelRepresentation() );
>         }
>         else
>         {
>             action.setType( UNKNOWN_ISSUE_TYPE );
>         }
>         action.setDev( issue.getAssignee() );
>         // Set dueTo to the empty String instead of null to make Velocity happy
>         action.setDueTo( "" );
>         // action.setDueTo( issue.getReporter() );
>         action.setAction( issue.getSummary() );
>         return action;
>     }
> {code}
> For example with following line:
> {code}
> action.setLink(issue.getLink());
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message