Auto-populate fields on Jira Cloud.

Nitin Pai March 6, 2023

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.

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 6, 2023

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

Nitin Pai March 6, 2023

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?

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 6, 2023

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events