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

Need help with SIL Script

Hello All , 

 

Need help with SIL Script ..

 

Anyone can help please ?

 

Regards

Ashish

3 answers

1 accepted

0 votes
Answer accepted

Not without any information on where you are stuck, no. 

No-one can help you when you have not bothered to explain the problem.

Here is my Script 

if(project == "KD") {

string [] linkedIssues;


for(JIssueLink l in getIssueLinksDetail(key)){
if(l.name == "Design" && l.direction == -1) {
linkedIssues += l.issue;
} else {
runnerLog("Customfield not updated: " + l.name + "/" + l.direction);
}
}

customfield_10054 = replace(linkedIssues, "|", ",");
}

 

I have a text custom field which displays issue key of issues linked by link "implemented by " 

 

i want the custom field to display issues same way its displaying linked issues 

one below the another and along with issuekey and text 

 

screen shoCapture.JPGt attached

SIL cannot do that, you can't inject the required html into text fields.  The best you can do is inject formatting for a rich-text field directly into the content, but text fields don't have formatting that would get you close to that display.

I'd also question why you're repeating a display of things that are already displayed on the issue view.  

@Nic Brough _Adaptavist_  : This is required for Confluence Table 

In Confluence , when i use JIRA macro to create a table it only allows me to use linked issue as a field to add. I only need the linked issues "implemented by" only

We want to capture this data and display in confluene so everytime a new issue is linked , it captured the data and display it in the confluence table 

 

Instead of text field, any other custom field i can use which solves our purpose ?

 

Thanks in advance for your help 

 

Regards

Ashish

No, a text field is the only one that you could add the duplicate data into.

@Nic Brough _Adaptavist_  : What solution can you suggest then 

@Nic Brough _Adaptavist_  : Thanks for the resposne .. I posted a previous question which wasnt answered .so thought of checking again if anyone is available to answer

@Nic Brough _Adaptavist_  : I have posted my script.

 

Can you please review and advice

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

727 views 7 24
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