Forums

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

Is there a way we can find issue is created from API or from UI

Muhammad Ramzan(Atlassian Certified Master)
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.
November 14, 2019

Hi,

 

I am using script runner for automation, I have a scenario to identify if issue is created from JIRA rest API so i can play with that issue . 

1 answer

0 votes
Tansu Akdeniz
Community Champion
November 15, 2019

Hi @Muhammad Ramzan(Atlassian Certified Master) ,

You can create a new user (ex: jirarestuser) to do a REST calls, so it is easy to identify whether issue was created from REST or not. In issue search screen, use creator=jirarestuser jql.

Alternatively, you can add a new customfield to issue create screen and make it hidden via Script Runner Behaviours feature. So that, when issue is created within Jira, users can never fill it. However, you can set this field (ex value: REST) while creating via REST API.

Hope it helps.

Regards

Suggest an answer

Log in or Sign up to answer