Forums

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

Need help with SIL Script

Ashish December 29, 2020

Hello All , 

 

Need help with SIL Script ..

 

Anyone can help please ?

 

Regards

Ashish

3 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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 29, 2020

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

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

0 votes
Ashish December 29, 2020

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

Nic Brough -Adaptavist-
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 30, 2020

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.  

Ashish December 30, 2020

@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

Nic Brough -Adaptavist-
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 30, 2020

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

Ashish December 30, 2020

@Nic Brough -Adaptavist-  : What solution can you suggest then 

0 votes
Ashish December 29, 2020

@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

Ashish December 29, 2020

@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
AUG Leaders

Atlassian Community Events