|
[
Permlink
| « Hide
]
Joshua Marker added a comment - 13/Apr/06 05:43 PM
Nevertheless, it is not an option. I am the administrator, and in the named permissions as well, and the value cannot be edited with the bulk transition. Could I edit this directly in the database?
Joshua,
You can edit this in the database. Please ensure JIRA is shutdown when you making changes. After JIAR is restarted you will need to reindex your data (Administration -> System -> Indexing). Please take a backup of the database before making any changes. Also, please do not add the resolution if one was not set, or clear the resolution if one was present. Switching from one resolution id to another should be OK. Thanks, Thanks.
The whole problem, though, is that there is a resolution set and there should not be. What is the safe way for me to clear a resolution on an item incorrectly marked resolved? Is the status of issues also incorrect? If so, then bulk transitioning issues to another status should help. Will this work for you?
If the issues are in the status that should not normally have a resolution, but the issues do have resolution set, you can clear it (set to null) in the database and then reindex your data (Administartion -> System -> Indexing. Please ensure that JIRA is shutdown while making the database update. If this is the case, can I ask how the issues got into this state? Thanks, I believe the issues got to this state because 'resolution' was visible on the default editing screen, and apparently once it is displayed (even if not edited) it is impossible to return it to a null state. There's no way to mark it optional.
I tried transitioning to another status, but this didn't help. The issues stayed 'resolved' but in the 'open' (or 'spec' or whatever) state – they wouldn't show on a user's 'active bug' list. I'll try reindexing, too, and let you know. In the mean time,I 'solved' the problem by making the field invisible on the default edit screen, then creating new issues for the old, frozen-out ones and killing them. I found the frozen ones by searching for statuses that are not closed but has a resolution, essentially. Based on my comments in JRA-1971, I can already do this. See attachment.
I used the workflow to add in the missing resolutions for several issues. Unfortunately, this messes up charts created using the jira-charting plugin because most the charts are based on the resolution date and not the when an issue was closed. Assigning a resolution to several closed issues makes a spike a most charts.
I could really use this fixing as well. I've imported a load of issues from CSV that had 'Resolved' status but no resolution set, and now I need to change all those resolutions from 'unresolved' to 'fixed.' It's a one-off occurance so I'm not terribly fond of implementing it fully in the workflow.
Richard,
For now you could do it in the database with SQL. The query would be something like: update jiraissue set resolution=(select id from resolution where pname='Fixed') where issuestatus=(select id from issuestatus where pname='Resolved') and resolution is null; and then reindex. Back up the database before doing this, of course. There is some database schema info in the docs We are having the same trouble as described by Richard Fine (imported issues have the Resolution field not set). We tried to solve this via Perl/SOAP scripting. We are able to change e.g. the Summary field, but are unable to change the Resolution field.
Here is a small code extract:
Q1: Is this a coding problem, or can't the resolution field be changed via SOAP? Jeff, ref: "For now you could do it in the database with SQL" Karel,
If you don't see a field on the "edit" screen, you won't be able to edit it by SOAP. If you temporarily add Resolution to the Default Screen, you'll be able to edit it via SOAP. > What does "For now" means? We are running 3.6 and planning to upgrade to 3.10. "For now" means until this feature request (bulk-editing of resolutions) is implemented. Jeff,
By adding the Resolution field to the Edit screen of the project involved, I'm able to update it via Perl/Soap scripting. Thanks for the tip, Karel |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||