I'm trying to create a Script Behaviour to make the Account Field(Locked & from Tempo) required when the issue type is selected as an epic during issue creation. and if the account value is chosen as 'xyz' the 2 other fields should be set as required.
When I tried to get the Account field in script behaviour, it was unidentified.
const accountField = getFieldById('customfield_xxxxx');
- I've taken the custom field ID from the Jira Admin custom field, but it is not taking it.
- I tried with getFieldByName("Account") still no luck
- I also checked from Tempo but could not find the ID.
- Well this is working in Workflow Script Validator. But I do have hundreds of workflows in my Jira instance and adding the validator in each workflow is not done.
I want to make this change globally.
Let me know if there is any way to solve this
Thanks in Advance!