Commit 97c4192e authored by Arturo Herrero's avatar Arturo Herrero

Update Jira issue entity labels with title

The GraphQL API uses title instead of name, and thus the frontend
components use label.title for the label's content.

Adding a title attribute here, and keep name for backwards
compatibility.
parent e5141fc4
......@@ -30,6 +30,7 @@ module Integrations
expose :labels do |jira_issue|
jira_issue.labels.map do |name|
{
title: name,
name: name,
color: '#EBECF0',
text_color: '#283856'
......
......@@ -54,6 +54,7 @@ RSpec.describe Integrations::Jira::IssueDetailEntity do
state: 'closed',
labels: [
{
title: 'backend',
name: 'backend',
color: '#EBECF0',
text_color: '#283856'
......
......@@ -51,6 +51,7 @@ RSpec.describe Integrations::Jira::IssueEntity do
status: 'To Do',
labels: [
{
title: 'backend',
name: 'backend',
color: '#EBECF0',
text_color: '#283856'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment