Details
-
Bug
-
Status: Done
-
High
-
Resolution: Fixed
-
3.0.0
-
None
-
PC Sprint 12
-
0
Description
When importing a filter which references a project by its name rather than its key using a syntax similar to this:
project = 'My Project Name'
Version 3.0.0 wrongly interprets that the value always refers to the key of the project. This implies that the filter import will often fail because a project with key "My Project Name" does not exist, no matter if a project with that name actually exists or it will be created by the same import.
Unfortunately both interpretations may be possible: the text might represent the project name or the project key.
With this fix, the import will check the string after "project =". If it matches the project key pattern it will assume it may be either a project key or a project name. If it does not match, then it will be handled as just a project name. This is integrated also with creation of projects during the same import, so that if a project with that key or name will be created during the import, Project Configurator will correctly recognise that the query will be valid once that project is created.
Attachments
Issue Links
- is related to
-
PCDEV-1176 When some JQL references an object by a string that is not acceptable as a valid object key (as a filter name), the import breaks
-
- Done
-
-
PCDEV-1170 Null Pointer Exception in PC 3.0 when importing a filter which references a project by ID
-
- To Do
-