Hi all,
We are using the plugin commit acceptance to block commits in SVN.
The commmit only can be accepted when the status from issue was "Implementing".
Please How can i include a line in perl script for that it read the status from issue in Jira.
Currently i am doing this through field Resolution. I would like to use the field status instead resolution:
Follow the line that i already tried :
1
2
|
$comment =~ m/( $projectKey -\d+)/; my $issue = $s ->call( "jira1.getIssue" , $jiraLogin , $jiraPassword , $1 )->result(); |
1
2
3
4
5
|
if ( $issue .status() == "Draft" ) { $acceptance = 'false' ; $comment = "Commits not accepted when the issue is in Draft state" ; } |
Please could you help me ?
Best Regards
Fabio
Fabio, the Commit Policy Plugin is the modern replacement for the old Commit Acceptance Plugin.
With this, you can verify the issue keys against a JQL query, which results in great flexibility. In your use case, just match the issue keys against a JQL like this:
status = Implementing
That's it. The JQL can contain any further filtering, against project, issue type, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.