Forums

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

How to set Team on Edit/Create views?

Ha B_ October 29, 2024

I need to write behavior to set Team field basing on another custom field. setFormValue doesn't work since Team field is a special type. I try to Team object (from come.atlassian.rm.teams.api.team.Team), with setCustomFieldValue and it doesn't work either. (I don't want to use updateIssue since it commits in the middle of behavior). This seems to be basic, but I can't find any example on how to do it).

Thanks.

1 answer

0 votes
Laurie Sciutti
Community Champion
October 29, 2024

Hello @Ha B_ ~ the Team field is numeric.  I set this in an automation rule as shown below, where you would enter you Team field ID and the numeric value of the Team.  Are you trying to set it in a ScriptRunner Behavior or another mechanism?

Capture.PNG

Ha B_ October 30, 2024

Hi Laurie, I need to set it using scriptrunner behavior since it depends on the selection of another field.

Suggest an answer

Log in or Sign up to answer