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