Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Validation for URL field

Madhu Reddy July 15, 2021

Hello,

We would like to add validators for Jira URL field.

The URL must be a SharePoint link and should not accept any other links. Any help would be appreciated.

Thanks in Advance

Madhu

2 comments

Payne
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.
July 15, 2021

I don't know how to accomplish this without any apps; do you have ScriptRunner or anything like that? 

Like Madhu Reddy likes this
Madhu Reddy July 15, 2021

Hi @Payne Yes we have ScriptRunner, JMWE and automation for jira apps. 

Any idea on this ? 

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 16, 2021

Hi @Madhu Reddy 

the easiest is to use a Scripted (Groovy) Validator with a script that uses a Regular Expression to test the value of the URL field. The actual RegEx is dependent on how exactly you identify valid Sharepoint URLs. For example

issue.get("URL field") ==~ /https:\/\/myserver.com\/.*/
Like Madhu Reddy likes this
Madhu Reddy July 19, 2021

Thank you @David Fischer this worked for me.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events