The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing plan variables at task creation time (populateContextForCreate())

attilaerdei
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 19, 2018

Hey!

I'm working on a plugin and having a hard time accessing plan variables at task creation. 

I can access the variables at task execution with

taskContext.getBuildContext().getVariableContext();

But can't seem to find a way to do that at task creation time (populateContextForCreate()). Is there any way to do this?

Any help/guidance is appreciated!

 

Attila

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 29, 2019

What you are looking for is:

VariableDefinitionAccessor.getPlanVariables(PlanIdentifier plan)
TAGS
AUG Leaders

Atlassian Community Events