CICD Merge Request issues assign label automatically after deploy stage

Hello all, i need some help configuring my pipeline.
I have my pipeline triggering after merge request do branch and then it deploys to environment.
What i need is that all the issues that are attached to the merge request receive a label (ex: deployed).
I cannot see how to make it work, any help will be much appreciated.

Thank you,

What i need to accomplish is to have a board with the environments names that shows the issues filtered by label.
That way i can see what are the issues that are installed on each of my environments, the approach that i thought was to label the issues when the pipeline runs on merge and deploys on each environment.

If this is not possible, does anyne have another way of accomplish what i need?

Your help is much needed.

Thank you