Roblox to Trello Suggestion System

I want to make a simple suggestions system through Trello.

When I press the button so only the Card Name comes not the Card Description.

Here is the script:
script.Parent.Submit.MouseButton1Click:Connect(function()
local TrelloAPI = require(game.ServerScriptService:WaitForChild(“TrelloAPI”))
local BoardID = TrelloAPI:GetBoardID(“Suggestions Sytem Blue Horizon”)
local ListID = TrelloAPI:GetListID(“Suggestions”,BoardID)
local name = script.Parent.Parent.Parent.Parent.Name
local desc = script.Parent.suggestions.Text
local NewCard = TrelloAPI:AddCard(name,desc,ListID)

end)

2 Likes

BoardID needs to be trello board ID, not name.
I mean I don’t really know your API for Trello.

Please don’t reply if you don’t know about Trello API. :slight_smile:

@SummaryManager is correct. The BoardID variable is meant to contain the ID of the actual Trello board, not the name of it. You can find your board ID in the URL, like so:

trellob

If this proves to be correct, I would assume that the ListID would also need the actual ID of the list, not the name of it.

After someone pointed it out, it’s likely that the Trello API you’re using is not like the one I’m thinking of. You can refer to my comments below after realizing this.

4 Likes

The variable, after the GetBoardID function is called, would contain the ID. However, per this API reference, which I assume OP is using, GetBoardID is called with the board name as an argument.

1 Like

I see. I mistook that function as more of GetBoardFromID, your comment made that more clear.

2 Likes

After reading Deferend’s comment and re-reading your issue, it sounds like you’re having trouble retrieving the text from a text box that the client has interacted with, and I also assume that you’re attempting to access this text from the serverside, which would be the root of your problem since the client editing the text box would not replicate.

A way around this is to setup some kind of event system of your choosing that would allow you to fire an event via a LocalScript and send the text input as an argument to the server and handle the Trello API from there.

1 Like

I think the script is suppose to be a ServerScript, and suppose to be something like this. Feel free correct me if I’m wrong.

Raw Code, I did not do it in studio something could error
–Local Script–
script.Parent.Submit.MouseButton1Click:Connect(function()
local plr = game.Players.LocalPlayer
local event = game.ReplicatedStorage.Event
local suggestion = script.Parent.Suggestion:WaitFordChild(“TextBox”)
event:FireServer(suggestion.Text)
end)
–Server Script–
game.ReplicatedStorage.Event.OnServerEvent:Connect(function(plr, suggestion)
local name = plr.Name…" Suggestion"
local TrelloAPI = require(game.ServerScriptService:WaitForChild(“TrelloAPI”))
local BoardID = TrelloAPI:GetBoardID(“Suggestions Sytem Blue Horizon”)
local ListID = TrelloAPI:GetListID(“Suggestions”,BoardID)
local name = script.Parent.Parent.Parent.Parent.Name
local desc = suggestion
local NewCard = TrelloAPI:AddCard(name,desc,ListID)
end)

1 Like

Thank you for your great idea! :slight_smile: