mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
add ticket description to AI Query
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
document.getElementById('rewordButton').addEventListener('click', function() {
|
||||
var textInput = document.getElementById('textInput');
|
||||
var ticketDescription = document.getElementById('ticketDescription');
|
||||
var rewordButton = document.getElementById('rewordButton');
|
||||
var undoButton = document.getElementById('undoButton');
|
||||
var previousText = textInput.value; // Store the current text
|
||||
@@ -13,7 +14,7 @@ document.getElementById('rewordButton').addEventListener('click', function() {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({ text: textInput.value }),
|
||||
body: JSON.stringify({ text: textInput.value, description: ticketDescription.value }),
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
|
||||
Reference in New Issue
Block a user