Open
Description
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
becomesSummary
issuelinks
becomesLinked 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.
Metadata
Metadata
Assignees
Labels
No labels