Forums

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

Auto Populate component

CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
March 12, 2024

Hi,

i want to auto populate Component value for my project if issue type is equal to Task.

i know we can do this through automation, but automation works after creating the issue right? but when i select task issue type while creating issue, component should be auto populate. i know we can do this through Behaviors but i'm not able to achieve this. please find my script.

 

getFieldById("components").setValue(Youtube);
i selected run script on Load on create view.

1 answer

2 votes
Jack Brickey
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 12, 2024

yes Automation runs post create, though unsure why that is an issue here. Assuming you are using a company managed project, you could use a different workflow for Task, basically a copy of the current one, and add a Post function to set the Component. This also saves on automation rules too.

CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
March 14, 2024

Post function will update the component value after issue creation right? but i want it to be the default value while creating issue.

Jarosław Solecki _Deviniti_
Atlassian Partner
March 14, 2024

We resolved that by creating the  Dynamic Forms for Jira.  You can conditionally set field value at the create screen and also make selected fields visible only if the defined conditions (like issue type or specific field value) are met. 

Jack Brickey
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 14, 2024

@CHINNAMUTHEVISAI.SATYANARAYANASHARMA ,

While Automation happens post-event, workflow post functions apply during the create when placed on the create transition/event. This will achieve your goal.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events