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
This widget could not be displayed.
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Delivery and Operations Teams can be more Effective and Profitable

    Managing services end-to-end, optimizing efforts to deliver the best services to customers. This is what team leaders and managers want to achieve. When using a tool like Jira, it...

36 views 0 1
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