Hi Team
I wrote a behaviour script for the auto-populate of custom fields in Jira Cloud for service desk project, but the changes are not reflected on the create screen.
Is there any other way to do auto populate.
Hi @Nitin Pai ,
please share your code so that we can support you on that. Another approach is to use a post function within your workflow that manipulate that field as transition post processing.
Fabio
const autoStatus = getFieldById("customfield_10115");
const autoYes = getFieldById("customfield_10510");
logger.info("Value : " + autoYes.getValue().name);
if(autoYes.getValue().name !== "Sevice Management") {
autoStatus.setVisible(false);
logger.info("false");
}
else {
autoStatus.setVisible(true);
logger.info("true");
}
Auto populate can be done in customer portal(users raise request) through this behaviour?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nitin Pai ,
for my knowledge, in order to make a field visible or not you need to use method setHidden() and not setVisible.
Moreover, in server/data center you can enable behaviour in the customer portal but I don't know if that feature is already existing for cloud version.
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.