feat: Add title while linking the linear issue (#9529)

This commit is contained in:
Muhsin Keloth
2024-05-23 13:32:41 +05:30
committed by GitHub
parent 0c4c561313
commit f83af33b87
6 changed files with 39 additions and 12 deletions

View File

@@ -117,6 +117,10 @@ const props = defineProps({
type: [Number, String],
required: true,
},
title: {
type: String,
default: null,
},
});
const emit = defineEmits(['close']);
@@ -218,7 +222,7 @@ const createIssue = async () => {
isCreating.value = true;
const response = await LinearAPI.createIssue(payload);
const { id: issueId } = response.data;
await LinearAPI.link_issue(props.conversationId, issueId);
await LinearAPI.link_issue(props.conversationId, issueId, props.title);
useAlert(t('INTEGRATION_SETTINGS.LINEAR.ADD_OR_LINK.CREATE_SUCCESS'));
onClose();
} catch (error) {