Forums

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

Redirect using script fragments

Alvin
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.
December 13, 2018

Hi All,

I would like to add a custom field on create screen that is a clickable link to redirect to another webpage. I've  found this script fragment (scriptrunner) and I can't figure out how can I suppose to see the changes that I've made in this configuration using web fragment. I need to display a hyperlink on Create Issue Screen of a particular project (let's say Project Sample).

Can you help me? This is the screenshot of my config

sample.png

2 answers

0 votes
Gonchik Tsymzhitov
Community Champion
July 17, 2023

Did you find some solution ? 

0 votes
fjodors
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.
December 13, 2018

Hi

If you need just add link on a "create issue" screen, I think you can create new custom field with type "Message custom field" (A custom field whose default value will be displayed as HTML) with link as <a href> element, and place in your screen.
You do not need scrptrunner for this.


If you still want to use web items, please pay attention on "What section should this go in" - You can find required section/panel using web location finder, see attached screenshot.

script fragments.png

Alvin
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.
December 13, 2018

Hi @fjodors, where can I find that "Message custom field"

fjodors
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.
December 13, 2018

Hi,

I think this is one of standard JIRA's custom fields.

Go to Jira administration -> Issues -> Custom fields -> Add custom field

and select a field with type "Message custom field"

Alvin
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.
December 13, 2018

Hi @fjodors, I did not see anything like "Message Custom Field"

fjodors
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.
December 13, 2018

Hi, looks like you need to install Toolkit plugin for JIra, it offers message custom field

Alvin
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.
December 13, 2018

Hi @fjodors, will look onto it. but I think we cannot pay add-on anymore

fjodors
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.
December 14, 2018
Alvin
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.
December 14, 2018

@fjodors , it is now unsupported I think, and a lot of negative reviews 

fjodors
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.
December 14, 2018

Ok, but you can check other custom field types, probably some of them cold be suitable for your task.
Or you can try to implement web fragment/web item, but in this case you should to find proper location ("What section should this go in") - see my previous comment.

Alvin
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.
December 16, 2018

@fjodors It does not seem to work whenever I use create issue or edit issue on the section, what am I doing wrong?

Suggest an answer

Log in or Sign up to answer