Forums

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

How to reject Jira issue/Story based on issue attachment?

kumar August 2, 2024

Hi all,

 

I am trying to access the Jira story/issue via REST API. Now I want to automatically reject the story based on the availability of file attachment in Jira story/issue. 

 

How can I achieve this?

 

Note: I am new to the Jira REST API. if there is another way, I would be happy to listen.

 

Thanks in advance

2 answers

0 votes
Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2024
0 votes
Victor Law
Community Champion
August 2, 2024

Hi @kumar

What is the use case scenario for this?

Do you want to check if there is any attachment in the Jira issue only?

Perhaps you may consider setting a validator with ScriptRunner to ensure an attachment is required on a workflow transition.

https://docs.adaptavist.com/sr4jc/latest/features/workflow-extensions/jira-expression-examples#require-attachments

Thank you.

 

kumar August 5, 2024

Hi @Victor Law 

Thank you for your answer. 

 

Usually we get stories for analyze and fixing the code based on traces. But often traces are not attached to the stories, so we need to reject those stories, if there are no traces in the stories.

 

I hope that I explained it properly.

 

thank you

kumar August 5, 2024

Hello @Victor Law 

 

Is there an options to achieve this task via workflow automation?

 

Based on this  

 

Thank you

https://www.atlassian.com/software/jira/guides/automation/overview#board-vs-project

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