I need to understand what % of our issues are getting deployed without moving through our QA process. Ideally, an issue status goes from In Progress to QA Ready to QA Started to QA Complete before being changed to Merged and then Deployed. Issues that bypass our QA Process will go straight from In Progress to Merged and then Deployed.
What would the syntax be for identifying recently resolved issues (say, in the last month) that moved through our QA statuses?
there was a problem with the import.
Solution >
from com.atlassian.jira import ComponentManager
Here is the solution to set a customfield type Date in a post-function (python) :
from com.atlassian.jira import ComponentManager import com.atlassian.jira.issue.CustomFieldManager import com.atlassian.jira.issue.fields.CustomField import datetime customFieldManager = ComponentManager.getInstance().getCustomFieldManager() customField = customFieldManager.getCustomFieldObject("customfield_10008") issue.setCustomFieldValue(customField, datetime.datetime(2012, 5, 29, 10, 30, 45))
Check datetime documentation for more options.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A little late answer, but in case someone else has the same problem:
I also had this problem when trying to edit an old plugin.
The reason for this is that, by default, "jira-core" has been excluded as an dependency in pom.xml.
Remove the <!-- and --> in the code below to include "jira-core".
This solved my problems.
<!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. -->
<!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x -->
<!--
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-core</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
-->
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am new to python scripting. When i run, i am getting following import error.
ImportError: No module named com.atlassian.jira.component
How can i fix this? where can i download com.atlassian.jira.component module and install.
Any suggestions much appreciated.
Regards
Jey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> there was a problem with the import
that's why i thought it didn't look like python.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I take a look about this : https://studio.plugins.atlassian.com/wiki/display/JSS/Scripting+Samples
It's a copy modified.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you write that yourself, or copy it from somewhere? That doesn't even look like jython code.
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.