• Icon: Suggestion Suggestion
    • Resolution: Answered
    • None
    • Stages, Variables
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Currently it is possible to use a variable value, but not to change it while a task is running.

      This would be useful to allow one Task/Stage to store a value in the server so that other Task/Stage can have access to it.

      Atlassian answer

      Modifying global and plan variables will not be implemented due to concurrency issues that would be created.

      However, since Bamboo 5.7 you can use Inject Variables task to add variables to "result" scope and use them later on, in subsequent Task, Stages and to create deployment release.

            [BAM-10272] Allow Tasks to change Global and Plan variables

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3016701 ] New: JAC Suggestion Workflow 3 [ 3612367 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing v4 [ 2700715 ] New: JAC Suggestion Workflow [ 3016701 ]
            Owen made changes -
            Issue Type Original: Improvement [ 4 ] New: Suggestion [ 10000 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1417036 ] New: Confluence Workflow - Public Facing v4 [ 2700715 ]

            batadjanov848667898, thank you for feedback.

            Resolution is marked as Answered and answer is now added to issue description.

            Alexey Chystoprudov added a comment - batadjanov848667898 , thank you for feedback. Resolution is marked as Answered and answer is now added to issue description.
            Alexey Chystoprudov made changes -
            Description Original: Currently it is possible to *use* a variable value, but not to *change* it while a task is running.

            This would be useful to allow one Task/Stage to store a value in the server so that other Task/Stage can have access to it.
            New: Currently it is possible to *use* a variable value, but not to *change* it while a task is running.

            This would be useful to allow one Task/Stage to store a value in the server so that other Task/Stage can have access to it.
            h3. Atlassian answer
            {quote}Modifying global and plan variables will not be implemented due to concurrency issues that would be created.

            However, since Bamboo 5.7 you can use Inject Variables task to add variables to "result" scope and use them later on, in subsequent Task, Stages and to create deployment release.
            {quote}

            I feel like the status of Resolved is not an appropriate one for this task. It gives you the false positive as it did to me that this enhancement is implemented. I'd expect a status of 'Won't do' or similar one

            batadjanov added a comment - I feel like the status of Resolved is not an appropriate one for this task. It gives you the false positive as it did to me that this enhancement is implemented. I'd expect a status of 'Won't do' or similar one
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 617471 ] New: Bamboo Workflow 2016 v1 [ 1417036 ]
            Marcin Gardias made changes -
            Resolution New: Answered [ 9 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Marcin Gardias added a comment - - edited

            Modifying global and plan variables will not be implemented due to concurrency issues that would be created.

            However, since Bamboo 5.7 you can use Inject Variables task to add variables to "result" scope and use them later on, in subsequent Task, Stages and to create deployment release.

            Marcin Gardias added a comment - - edited Modifying global and plan variables will not be implemented due to concurrency issues that would be created. However, since Bamboo 5.7 you can use Inject Variables task to add variables to "result" scope and use them later on, in subsequent Task, Stages and to create deployment release.

              Unassigned Unassigned
              rbattaglin Renan Battaglin
              Votes:
              7 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: