mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 06:55:52 +03:00
[GH-ISSUE #1489] Renaming a community script does not rename the script in Automation Manager > Tasks #2876
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2876
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NiceGuyIT on GitHub (Apr 18, 2023).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1489
Originally assigned to: @silversword411, @sadnub on GitHub.
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
This is from feature request #1486. Renaming a community script does not rename the script in Automation Manager > Tasks. See this comment for details.
To Reproduce
Steps to reproduce the behavior:
community_scripts.jsonto match.Expected behavior
The script name in the task is updated to the new name.
Screenshots
See this comment for screenshots.
Additional context
When working on scripts with similar names, it's almost impossible to determine which script is associated with a task. Script checks are renamed and easy to find.
@silversword411 commented on GitHub (May 4, 2023):
Do you mean the actual name of the task under "Tasks"...isn't that manually set via text, and not pulled from the community script script name (like in "Checks"
@NiceGuyIT commented on GitHub (Jun 1, 2023):
Screenshot of Script Manager for a script that was imported. Notice the dotted lines around the fields.

Here's the corresponding JSON.
Add the script to Automation manager as both a check and task. Make sure they are both synced and have run.

Now let's change the script name. Here's the new JSON.
New name is showing in Script Manager.

New name is showing in the check when viewing the agent.

Automation manager shows the new name for the check.

Automation manager shows the old name when viewing the script attached to the task. This is the only place the new name is not updated.

When you attach a script to a task, several properties like the script name, arguments, etc. from the script are attached to the task. I'm under the assumption that if community script was updated, the update would flow down into the scripts attached to tasks. Otherwise you would have no idea what version of the script is attached to a task.
Hope that helps!