History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRA-14656
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Michael Tokar [Atlassian]
Reporter: Chai Ying Chan [Atlassian]
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JIRA

Parent(default) field configuration has overridden setting in issue type field configuration

Created: 17/Mar/08 04:25 AM   Updated: 26/Mar/08 07:26 PM
Component/s: Portlets, Issue Fields
Affects Version/s: 3.12.2
Fix Version/s: 3.12.3

Time Tracking:
Original Estimate: 1 hour
Original Estimate - 1 hour
Remaining Estimate: 0 minutes
Time Spent - 1 hour, 30 minutes
Time Spent: 1 hour, 30 minutes
Time Spent - 1 hour, 30 minutes

File Attachments: None
Image Attachments:

1. screenshot-1.JPG
(13 kb)

Participants: Anton Mazkovoi [Atlassian], Chai Ying Chan [Atlassian] and Michael Tokar [Atlassian]
Since last comment: 18 weeks, 3 days ago
Resolution Date: 25/Mar/08 11:09 PM
Labels:


 Description  « Hide
The 'Assigned To Me' portlet does not show the priority icon. Here is the steps to re-produce:

1. Create some issues with 'Bug' issue type and assign to current logged-in user
2. Create a Testing Field Configuration Scheme
3. In the Default Field Configuration, hide the 'Priority' field
4. Create a 'Bug' Field Configuration for Bug issue type with the 'Priority' field is not hidden
5. Associate this Field Configuration Scheme with the project
6. Go to dashboard and create an 'Assigned To Me' portlet. The 'Priority' field is not shown in the portlet for 'Bug' issue.

Please see the screenshot-1 for a clearer picture.

By looking into the method of isFieldHidden in FieldVisibilityBean.java, I have found the following:

 if (TextUtils.stringSet(issueTypeId))
            {
                if (ALL_ISSUE_TYPES.equals(issueTypeId))
                {
                   .....
                for (Iterator iterator = issueTypes.iterator(); iterator.hasNext();)
                    {
                        String typeId = (String) iterator.next();
                        FieldLayout fieldLayout = getFieldManager().getFieldLayoutManager().getFieldLayout(project, typeId);

                        if (fieldLayout == null || fieldLayout.isFieldHidden(fieldId))
                        {
                            return true;
                        }
                    }
                    // Field is not hidden in any field layout scheme associated with this project
                    return false;
                 }
              }

It always checks for the default field configuration first, and return the the value of 'true' if it found the field is hidden regardless of the other custom field configuration. As a result, the priority in 'Assigned To Me' portlet is not shown. Could it based on the issue type field configuration instead of the default one?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Anton Mazkovoi [Atlassian] - 17/Mar/08 10:00 PM
The bug is in issuesummary-rowcontents.vm file on line 21. The problem is that the name of the issue type is passed to the isFieldHidden method, rather than the issue type id. This makes the code check the default field configuration rather than the correct one.