wolfgangimig / itol

JOA based issue tracker for Microsoft Outlook
23 stars 6 forks source link

Missing required field #42

Open barndorfer opened 8 years ago

barndorfer commented 8 years ago

I am sure this is a setup problem. Can you please direct me to where to fix the attached screenshot?

"errors":["Required Date can't be blank"]

missing_field

wolfgangimig commented 8 years ago

Since Redmine does not provide all information about customized fields, you have to declare them in ITOL too. Open IssueServiceImpl.js in ITOL's installation directory. If "Required Date" is available for all projects, add it to 'customFieldsInAllProjects':

// TODO: Names of fields used in all projects:
// Add one line for each field in format ... "fieldname" : true,
var customFieldsInAllProjects = {
        "Required Date" : true,
};

If the field is only valid for some projects, define it at 'mapCustomFieldsToProjects':

//TODO: Field to project relationship.
//Add one line for each relation in format ... "fieldname in projectname" : true,
var mapCustomFieldsToProjects = {
        "Required Date in project1" : true,
        "Required Date in project2" : true,
        "Required Date in project3" : true,
};
janus31 commented 8 years ago

Hi, I have the same problem with a field valid only a particular project. I define it at 'mapCustomFieldsToProjects': // TODO: Field to project relationship. // Add one line for each relation in format ... "fieldname in projectname" : true, var mapCustomFieldsToProjects = { "field1 in pé1 » pé2" : true, };

But the field doesn't display. Can you help me ?