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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Validation for URL field

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 Community Leader Jul 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

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

Any idea on this ? 

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

Thank you @David Fischer (Appfire) this worked for me.

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

934 views 2 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you