How to append a video already have in attachment section to the description of jira issue via code

Sudam Praveen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 12, 2024

This video url is already in the attachment section. I want to add this video to the actual result section in the description


start_idx = current_description.find("Actual Results") + len("Actual Results")
before_append = current_description[:start_idx].strip()
after_append = current_description[start_idx:].strip()

updated_description = (
f"{before_append}\n"
+ "\n".join([f"<h2>Video Preview</h2><a href='{url}' target='_blank'>{url}</a>" for url in file_urls])
+ f"\n{after_append}"
)

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events