Forums

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

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}"
)

1 answer

0 votes
Aaron Pavez [ServiceRocket]
Community Champion
January 3, 2025

Hi @Sudam Praveen 

Can you give us a bit more details on what you want to achieve? Its not clear from your description.

Where are you using that code you've shared?


Do you want to copy the attachment name to the description?

copy the attachment?

Regards

Suggest an answer

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

Atlassian Community Events