File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,22 @@ def getProjectInfoFields(self) -> dict:
123123 name_ = inspect .currentframe ().f_code .co_name
124124 return self ._run (name_ )
125125
126+ def setProjectInfoField (
127+ self , projectInfoId : str | ProjectInfo , projectInfoValue : str
128+ ) -> dict :
129+ """Sets the value of a project info field.
130+
131+ Args:
132+ projectInfoId (`str | ProjectInfo`): The ID of the project info field, either as a string
133+ or a `ProjectInfo`-class member (enum).
134+ projectInfoValue (`str`): The new value of the project info field.
135+ """
136+ name_ = inspect .currentframe ().f_code .co_name
137+ if isinstance (projectInfoId , ProjectInfo ):
138+ projectInfoId = projectInfoId .value
139+ params = {"projectInfoId" : projectInfoId , "projectInfoValue" : projectInfoValue }
140+ return self ._run (name_ , params )
141+
126142 def getStories (self ) -> dict :
127143 """Retrieves information about the story sructure of the currently loaded project."""
128144 name_ = inspect .currentframe ().f_code .co_name
You can’t perform that action at this time.
0 commit comments