Epic in Admin > Attributes > Custom Fields
parent
605ff1480e
commit
fbfde871e2
|
@ -146,14 +146,16 @@ urls = {
|
|||
"attachments/wiki_page": "/wiki/attachments"
|
||||
|
||||
# Custom Attributess
|
||||
"custom-attributes/epic": "/epic-custom-attributes"
|
||||
"custom-attributes/userstory": "/userstory-custom-attributes"
|
||||
"custom-attributes/issue": "/issue-custom-attributes"
|
||||
"custom-attributes/task": "/task-custom-attributes"
|
||||
"custom-attributes/issue": "/issue-custom-attributes"
|
||||
|
||||
# Custom Attributess - Values
|
||||
"custom-attributes-values/epic": "/epics/custom-attributes-values"
|
||||
"custom-attributes-values/userstory": "/userstories/custom-attributes-values"
|
||||
"custom-attributes-values/issue": "/issues/custom-attributes-values"
|
||||
"custom-attributes-values/task": "/tasks/custom-attributes-values"
|
||||
"custom-attributes-values/issue": "/issues/custom-attributes-values"
|
||||
|
||||
# Webhooks
|
||||
"webhooks": "/webhooks"
|
||||
|
|
|
@ -29,6 +29,9 @@ resourceProvider = ($repo) ->
|
|||
return $repo.queryOne(resource, objectId)
|
||||
|
||||
service = {
|
||||
epic: {
|
||||
get: (objectId) -> _get(objectId, "custom-attributes-values/epic")
|
||||
}
|
||||
userstory: {
|
||||
get: (objectId) -> _get(objectId, "custom-attributes-values/userstory")
|
||||
}
|
||||
|
|
|
@ -32,6 +32,9 @@ resourceProvider = ($repo) ->
|
|||
return $repo.queryMany(resource, {project: projectId})
|
||||
|
||||
service = {
|
||||
epic:{
|
||||
list: (projectId) -> _list(projectId, "custom-attributes/epic")
|
||||
}
|
||||
userstory:{
|
||||
list: (projectId) -> _list(projectId, "custom-attributes/userstory")
|
||||
}
|
||||
|
|
|
@ -572,6 +572,8 @@
|
|||
"CUSTOM_FIELDS": {
|
||||
"TITLE": "Custom Fields",
|
||||
"SUBTITLE": "Specify the custom fields for your user stories, tasks and issues",
|
||||
"EPIC_DESCRIPTION": "Epics custom fields",
|
||||
"EPIC_ADD": "Add a custom field in epics",
|
||||
"US_DESCRIPTION": "User stories custom fields",
|
||||
"US_ADD": "Add a custom field in user stories",
|
||||
"TASK_DESCRIPTION": "Tasks custom fields",
|
||||
|
|
|
@ -17,6 +17,13 @@ div.wrapper(
|
|||
include ../includes/components/mainTitle
|
||||
p.admin-subtitle(translate="ADMIN.CUSTOM_FIELDS.SUBTITLE")
|
||||
|
||||
div.admin-attributes-section(
|
||||
tg-project-custom-attributes,
|
||||
ng-controller="ProjectCustomAttributesController as ctrl",
|
||||
ng-init="type='epic'; customFieldSectionTitle='ADMIN.CUSTOM_FIELDS.EPIC_DESCRIPTION'; customFieldButtonTitle='ADMIN.CUSTOM_FIELDS.EPIC_ADD'"
|
||||
)
|
||||
include ../includes/modules/admin/admin-custom-attributes
|
||||
|
||||
div.admin-attributes-section(
|
||||
tg-project-custom-attributes,
|
||||
ng-controller="ProjectCustomAttributesController as ctrl",
|
||||
|
|
Loading…
Reference in New Issue