Antrax810 / csharptest-net

Automatically exported from code.google.com/p/csharptest-net
0 stars 0 forks source link

State of JIRA issues won't be updated #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. TortoiseSVN -> Commit...
2. Select "Jira Issues" Button
3. Select Issue
4. Select  "Set" and choose "Resolve Issue"
5. Enter comment, hit "ok" at the issue window and at the commit window

What is the expected output? What do you see instead?

The Issue schould be resolved now, but only the comment appears at JIRA.

What version of the product are you using? On what operating system?
JIRA 3.1.3 Pro, running on Linux
JIRA-Plugin 1.9.1016.145, running on WinXP

Please provide any additional information below.

"Parameters" at Issue Tracker Integration:
https://issues.company.com/jira

Original issue reported on code.google.com by goo...@hardcoded.de on 10 Dec 2009 at 2:40

GoogleCodeExporter commented 8 years ago
This may be caused by one or more 'required' fields that do not match with the 
current defaults.  This is 
a known limitation and, like all thinks, will eventually be added.

To fix this in the near-term I'm afraid you're going to need to crack the code 
and provide those field 
values.

Take a look at the following source file:
http://code.google.com/p/csharptest-net/source/browse/trunk/src/Tools/SvnPlugin/
JiraConnection.cs

Starting around line 232 you should find:

    if (StringComparer.OrdinalIgnoreCase.Equals("Resolution", field.name))
        param.values = new string[] { FindFixResolution() };
    else if (StringComparer.OrdinalIgnoreCase.Equals("Assignee", field.name))
        param.values = new string[] { assignTo.Id };
    else
        param.values = issue.GetFieldValue(paramName);

Just add your own logic here to populate those required fields.

Original comment by Grig...@gmail.com on 22 Feb 2010 at 12:07

GoogleCodeExporter commented 8 years ago

Original comment by Grig...@gmail.com on 14 Sep 2010 at 1:34

GoogleCodeExporter commented 8 years ago

Original comment by Grig...@gmail.com on 14 Sep 2010 at 1:35

GoogleCodeExporter commented 8 years ago
As of the lastest code on https://github.com/csharptest/JiraSVN

Custom Fields - You may now hard-code the value for any required custom field 
in jira by specifying both the action and field name seperated by a ':'.  thus 
to set customfield_10030 to the value 'true' for the 'Resolve' action you would 
specify the following:

    <add key="Resolve:customfield_10030" value="true"/>

Original comment by Grig...@gmail.com on 26 Jan 2011 at 11:21