Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fields of linked issues are not auto-mapped #150

Open
aik099 opened this issue Nov 13, 2016 · 0 comments
Open

Fields of linked issues are not auto-mapped #150

aik099 opened this issue Nov 13, 2016 · 0 comments
Milestone

Comments

@aik099
Copy link
Member

aik099 commented Nov 13, 2016

Auto-mapping is library feature, that is enabled by default and is converting every issue field name into it's human form, e.g.

  • summary becomes Summary
  • issuelinks becomes Linked Issues

Unfortunately it only works for issue itself and not linked issues.

For example if I specify summary,status,issuelinks as $fields parameter of Walker class (instead of *navigable) I'll get Linked Issues field with this content:

Array
(
    [0] => Array
        (
            [id] => 12802
            [self] => http://jira.in-portal.org/rest/api/2/issueLink/12802
            [type] => Array
                (
                    [id] => 10101
                    [name] => Family
                    [inward] => child of
                    [outward] => parent of
                    [self] => http://jira.in-portal.org/rest/api/2/issueLinkType/10101
                )

            [inwardIssue] => Array
                (
                    [id] => 12204
                    [key] => INP-1300
                    [self] => http://jira.in-portal.org/rest/api/2/issue/12204
                    [fields] => Array
                        (
                            [summary] => Upgrade to CKEditor 4.2
                            [status] => Array
                                (
                                    [self] => http://jira.in-portal.org/rest/api/2/status/5
                                    [description] => Associated "Differential Revision" has been reviewed & committed.
                                    [iconUrl] => http://jira.in-portal.org/images/icons/statuses/resolved.png
                                    [name] => Resolved
                                    [id] => 5
                                    [statusCategory] => Array
                                        (
                                            [self] => http://jira.in-portal.org/rest/api/2/statuscategory/3
                                            [id] => 3
                                            [key] => done
                                            [colorName] => green
                                            [name] => Done
                                        )

                                )

                            [priority] => Array
                                (
                                    [self] => http://jira.in-portal.org/rest/api/2/priority/4
                                    [iconUrl] => http://jira.in-portal.org/images/icons/priorities/minor.svg
                                    [name] => Minor
                                    [id] => 4
                                )

                            [issuetype] => Array
                                (
                                    [self] => http://jira.in-portal.org/rest/api/2/issuetype/3
                                    [id] => 3
                                    [description] => A task that needs to be done.
                                    [iconUrl] => http://jira.in-portal.org/secure/viewavatar?size=xsmall&avatarId=10418&avatarType=issuetype
                                    [name] => Task
                                    [subtask] => 
                                    [avatarId] => 10418
                                )

                        )

                )

        )

    [1] => Array
        (
            [id] => 12803
            [self] => http://jira.in-portal.org/rest/api/2/issueLink/12803
            [type] => Array
                (
                    [id] => 10101
                    [name] => Family
                    [inward] => child of
                    [outward] => parent of
                    [self] => http://jira.in-portal.org/rest/api/2/issueLinkType/10101
                )

            [inwardIssue] => Array
                (
                    [id] => 12442
                    [key] => INP-1309
                    [self] => http://jira.in-portal.org/rest/api/2/issue/12442
                    [fields] => Array
                        (
                            [summary] => Implement inline editing in CKEditor
                            [status] => Array
                                (
                                    [self] => http://jira.in-portal.org/rest/api/2/status/5
                                    [description] => Associated "Differential Revision" has been reviewed & committed.
                                    [iconUrl] => http://jira.in-portal.org/images/icons/statuses/resolved.png
                                    [name] => Resolved
                                    [id] => 5
                                    [statusCategory] => Array
                                        (
                                            [self] => http://jira.in-portal.org/rest/api/2/statuscategory/3
                                            [id] => 3
                                            [key] => done
                                            [colorName] => green
                                            [name] => Done
                                        )

                                )

                            [priority] => Array
                                (
                                    [self] => http://jira.in-portal.org/rest/api/2/priority/4
                                    [iconUrl] => http://jira.in-portal.org/images/icons/priorities/minor.svg
                                    [name] => Minor
                                    [id] => 4
                                )

                            [issuetype] => Array
                                (
                                    [self] => http://jira.in-portal.org/rest/api/2/issuetype/7
                                    [id] => 7
                                    [description] => A new feature of the product, which has yet to be developed.
                                    [iconUrl] => http://jira.in-portal.org/secure/viewavatar?size=xsmall&avatarId=10411&avatarType=issuetype
                                    [name] => Feature Request
                                    [subtask] => 
                                    [avatarId] => 10411
                                )

                        )

                )

        )

)

In there the inwardIssue and outwardIssue keys represent the linked issue. Note, that even with automapping enabled I see summary key name instead of Summary and so on.

@aik099 aik099 added this to the v2.0.1 milestone Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant