Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to provide Hyperlink for issue key or any Id in Script listeners for Jobs

How to provide Hyperlink for issue key or any Id in Script listeners for Jobs

1 answer

1 accepted

1 vote
Answer accepted

I am sorry, I do not understand the question.  

The hyperlink for an issue is <base url>/browse/<issue key>, but I don't understand what you mean when you say you want it "in script listeners for jobs"

Could you tell us what you are trying to achieve?  In general terms, not the technical "put this code here" part.

Hi,

what i am asking is I have written a script Listener for automatic due notification and i have done it but the problem is i missed something in that and the notification i am like this

1. Issue key: DCAB

But i need the mail like this

1. Issue key: DCAB

while clicking on the issue key it will navigate me to the issue.

regards

Uday

Ok, so a listener listens for events and does something based on the content of the event.  One of the things the event contains is a reference to the issue, so your code can use the object event.issue directly.

The part of your code that is building the email looks like it has got the Id already (the DCAB), but it'll need to build the html if you want it to link like that.  You'll want it to build something like

1. issue key: <a href="(your base url)/browse/(issue key)">(issue key)</a>

Hi Nic,

Thanks for the response. Could you please elaborate more datils about the "BASE URL"

Regards

Uday

The base url is the url set in the system as the single root of the application.   If, for example you are seeing issues on urls like https://yourserver/jira/browse/DCAB-42 then your base url is https://yourserver/jira 

Suggest an answer

Log in or Sign up to answer
TAGS

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