Hello All,
I am trying to get its-jira plugin running on my gerrit 2.14.1 instance and after trying for almost two days I cannot seem to get transitions working.
Some background:
gerrit version 2.14.1
I am able to get comments working, so I know the plugin loaded fine, is enabled for the project I am working with, and the provided account has necessary permissions; for example I have this in etc/its/actions-its-jira.config and a comment is added to the jira issue when a -2 code-review is given to a change
[rule "someRuleForJiraOnly"]
event-type = comment-added
approval-Code-Review = -2
action = add-comment Dear JIRA users, the change had a -2 Code-Review approval.
What I would like to do is transition the bug to "Working" when a change is uploaded. For reference, I can manually set the bug to "Working" with the account provided in config without any additional information.
{- "expand":"transitions",
- "transitions":[
- {},
- {},
- {},
- {},
- {},
- {},
- {},
- {
- "id":"11",
- "name":"Working",
- "to":{}
}
]
}
What I've tried:
in etc/issue-state-transition.config
[action "Working]
change=created
in etc/issue-state-transition.config (just to try something different)
[action "Working"]
code-review=+2
in etc/its/actions-its-jira.config (just to try something different)
[rule "setWorking"]
event-type = comment-added
approval-Code-Review = +2
action = Working
I've set the logging level for JiraItsFacade and JiraClient classes to DEBUG, and I see the log messages when the plugin adds a comment to the issue (per my rule "someRuleForJiraOnly" above), but nothing about attempting the transition. Not even a message about a failed attempt, or transition is invalid. Just nothing, which leads to be believe something is configured incorrectly. I've had to go into the documentation for previous versions of its-jira to find a mention of state transisions as it is not mentioned in the most current version of documentation. Looking through the plugins history the commit where the state transition information was deleted states:
"All the documentation on the rules is now on its-base.
The its-jira section is completely obsolete and misleading"
But I was not able to find any mention of what I need it in the rest of the its documentation. So I'm at a bit of a loss here, I'm missing something but I'm not sure what.
Thanks for the help