When performing an export I get a lot of lines with the following output:
For simplification I only pasted 1 line, but the format is the same for other projects
How can I correct these errors?
Running JIRA 6.4.4. with version 1.6 of Project configurator
Hi Mark,
Oops, in my last comments I was still thinking about customfield_10101, that showed in the original question...
But no problem. I have seen your email at our support account, which supplies a lot of information
I think that the missing custom field is not shown in the validator edition screen, because this screen just ignores a custom field that it cannot find. You could fix it this way:
The idea is deleting the validator and creating a new one, instead of trying to fix the existing one. This should be a very fast operation.
Best regards!
I've deleted the validation items and re-created this solved the problems (although there were a few). Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
That message means that the workflow ("EhvDevelopment-PickUp") contains a reference to a custom field that does not exist any longer. This may have happened because the workflow was created when the custom field existed, but it was deleted later. The custom field might also have been disabled, if its type was defined in a plugin and the plugin was disabled or uninstalled.
If the custom field "disappeared" because its type was defined in a plugin that had been disabled or uninstalled, just re-enabling the plugin should bring the custom field back and solve the problem.
Otherwise, you can fix it removing the broken reference from the workflow. If the workflow does not have many transitions it is practical to look for the broken reference using the workflow editor in JIRA. If the worklow is quite large with many transitions, it could be more convenient to export it to XML, find the broken reference in the XML (i.e. finding out in which transition and in which condition, validator or post function the reference occurs) and then fix it in the editor in JIRA.
Best regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Exporting the workflow to XML made it a bit more clear.
I can now see easily see the validation part (as it is a complex workflow).
<validator name="" type="class"> <arg name="hidFieldsList">customfield_12613@@customfield_12609@@assignee@@customfield_12608@@</arg> <arg name="class.name">com.googlecode.jsu.workflow.validator.FieldsRequiredValidator</arg> </validator>
However, I still have problems tracking down that specific custom field. I've executed the following URL, hoping that it would lead me to custom field but that doesn't work.
http://<JIRAURL>/secure/admin/ConfigureCustomField!default.jspa?customFieldId=10101
When editing the workflow in JIRA , it only shows me 3 values and not the offending or missing one. So no chance to correct or remove the correct the custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Once you are seeing the XML in your favorite editor, use the search function to find all the occurrences of "customfield_10101", as that is the reference that caused the error. When you have found these references, note down where they are (transistion + condition/validator/post-function) and remove them in the workflow editor in JIRA. You need not find the custom field with id 10101 in JIRA. In fact, it is certain you will not find it because that custom field does not exist now. At best, it could still be in the database if it has been disabled beacuse its type was defined in a disabled plugin. You can check that with this SQL query: select * from customfield where id=10101 If that returns a record, it will show the type the custom field had, in the field "customfieldtypekey".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The workflow editor does not show me the obsolete customfield items. As a result I am unable to remove them I also queried the JIRA database but the referenced field entries are not there any more in table customfield.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark, Did you find the references in the XML workflow descriptor? In that case, could you paste here the section of the XML with the reference to the custom field? Otherwise, could you email the XML workflow descriptor to support at awnaba dot com? Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi José, Below is snippet of the .XML file. The offending customfield = customfield_12608 which is not available in the JIRA database. <validators> <validator name="" type="class"> <arg name="hidFieldsList">customfield_12613@@customfield_12609@@assignee@@customfield_12608@@</arg> <arg name="class.name">com.googlecode.jsu.workflow.validator.FieldsRequiredValidator</arg> </validator> </validators>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I could not place an screenshot of the validation screen in JIRA. But will mail it to you via support at....
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.