youngmon/atlassian-qna huggingface dataset:
How do you use different Node.js versions on build machine?
Asked by amargalis:

We need the ablility to reproduce older builds. So in the future we will need to build with the older version of Node.js along with the future versions for future builds. This is all on one build machine.


Answers:
author: devpartisan
body: I run into this all the time, not just on the Bamboo server, but on my local dev machine. I have found [Node Version Manager](https://github.com/creationix/nvm) (nvm) to be a huge help for both cases. To install a given version (and keep it around), just do "nvm install 0.10". In a Bamboo build, you would just run a script task for "nvm use 0.10" then you can kick off your build however you would normally.

comments: author: David Chin
body: This is great post and quite simple. By setting a default version nvm alias default \<version\>, any other shell that opens will use this. Then in my build job, I just add a script shell and call nvm use \<myVersion\> and run the build. When finished, no harm done. Everything (other builds) just looks the same.


Tags: node.js
Inject Bamboo variables on Windows server
Asked by Jamie Ide:

I am trying to inject a version number variable using the Inject Bamboo variables task running on Windows Server 2012 R2. My variable file is called BambooInjectVariables.txt and contains a single line:

AssemblyInformationalVersion=1.1.2.46-59768a0

The log entries for the failing build show

```
simple	09-May-2017 15:43:05	Starting task 'Inject variables' of type 'com.atlassian.bamboo.plugins.bamboo-variable-inject-plugin:inject'simple	09-May-2017 15:43:05	Injected variable bamboo.inject.??A?s?s?e?m?b?l?y?I?n?f?o?r?m?a?t?i?o?n?a?l?V?e?r?s?i?o?n?=?1?.?1?.?2?.?4?6?-?5?9?7?6?8?a?0? in RESULT scopesimple	09-May-2017 15:43:05	Injected variable bamboo.inject.?= in RESULT scopesimple	09-May-2017 15:43:05	Finished task 'Inject variables' with result: Success
```

and the build fails soon after. What am I doing wrong?


Answers:
author: talleym
body: Any chance you were able to resolve this? We're just running in to this now.

comments: author: John Hilts
body: I also observed this same problem, but was able to resolve it.

I was generating the file from PowerShell, and the trick was to make sure that I forced the output to be ASCII.

```
"key=$value" | Out-File "$Env:bamboo_build_working_directory\kv.properties" -Encoding ascii
```
Publish Bamboo test results/reports on different server
Asked by Anton Jerald:

Publish automation test reports outside Bamboo server. I want to store the results in a different server. I am using Maven build. I am seeing Specify custom results directories in Maven 3.x but I am not sure how to store the results in a different server. The help is much appreciated.

Thanks,

Anton


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You can use the **SCP** task to copy the files over to a remote server. Check out [https://confluence.atlassian.com/bamboo/using-the-scp-task-in-bamboo-305759795.html](https://confluence.atlassian.com/bamboo/using-the-scp-task-in-bamboo-305759795.html?)
How to build a Bamboo plugin with both server and agent components?
Asked by Ed Jackson:

I've been asking a lot of n00bish questions recently, and here's another:

If a plugin includes both a build task (which obviously runs on the agent) and portions that need to live on the server, can it be built as a single jar? There's no problem on the server side, but because the agent doesn't include all the same dependencies, the plugin fails to resolve (even though the task portions of the code don't need those dependencies).

Would it be normal practice just to mark all the server-side dependencies as optional so they don't stop the plugin loading on the agent? Or would one generally build a separate agent plugin? Or is there some way to tell the agent to only load certain modules?


Answers:
author: devpartisan
body: This doesn't sound n00bish at all. And I would ask again over on the [developer commuity](https://community.developer.atlassian.com/) just to see if you can get a 2nd opinion.

I'm not sure what's "normal", but I would be inclined to build separate plugins. Dependencies are hard enough to manage, by trying to manage the set of dependencies for 2 "paths" through your plugin, it could be very error prone. I'm most afraid that you'd have a slow feedback loop and potentially confusing bugs.

I don't know of any way to tell agents to only load certain modules.


Tags: bamboo-app

bamboo-development
Can I trigger a exe file after the Build plan
Asked by Rakesh Kumar Barik:

HI,

I want to trigger an exe (console app that will checjk something and trigger another bat ) file after the build plan successful.

That exe file need to run every 10 mins after the build plan .

Is it possible in Bamboo,i so then how can I do that?


Answers:
author: Maarten Cautreels
body: Hi Rakesh,

When you're bamboo (or the slave running the job) is running on Windows you should be able to that using a [Custom command executable task](https://confluence.atlassian.com/bamboo/custom-command-executable-289277045.html).

Not sure though if you can configure it to run every 10 minutes after a build was succesful.

Best,

Maarten
Unable to read cipher data for 0
Asked by Jonas Andersson:

Hi,

I seem to get the error "Unable to read cipher data for 0" every time i try to add a shared credential in bamboo. Same error occure when i try to add a repo from Bitbucket.

The problem reminds of this:

<https://community.atlassian.com/t5/Questions/bamboo-cipher-keys-are-seemingly-not-generated/qaq-p/277225>

With the exception that bamboo HAS access to the filesystems, and will replace a removed cipher file with a new file (32 bytes).

This happens on Bamboo 5.15.5 build 51518 when adding repos from Bitbucket v4.14.3.

I started a case with atlassian a week back but except for pointing out that bamboo needs to be able to write to the filesystem (something i told them when opening the ticket) they are now aiming on reverting the upgrade that might have caused it, redo the upgrade again, and expect a completely different end-results, which i am prone to not believe..

Has anyone run into the "Unable to read cipher data for 0" during other circumstances (i.e. not due to lack of permissions on filesystem)?

Thankful for anything that can push this forward.


Answers:
author: Przemek Bruski
body: There should be a fatal error reported in the log file when that happens. What does it say?

comments: author: Jonas Andersson
body: {noformat}

2017-05-09 14:41:26,515 FATAL \[16-ImmutablePlanCacheServiceImpl.initialiseCache:pool-31-thread-1\] \[InstanceSecretStorage\] Database part of instance key is unavailable  
2017-05-09 14:41:26,516 FATAL \[16-ImmutablePlanCacheServiceImpl.initialiseCache:pool-31-thread-1\] \[InstanceSecretStorage\] Cipher initialisation vector is unavailable  
2017-05-09 14:41:26,516 FATAL \[16-ImmutablePlanCacheServiceImpl.initialiseCache:pool-31-thread-1\] \[SecretEncryptionServiceImpl\]  
java.lang.IllegalArgumentException: Unable to read cipher data for 0  
at

{noformat}


author: Przemek Bruski
body: So your problem is that the database part of the key is missing, not the filesystem part. One reason for that is that you've deleted the content of BANDANA table, the other is that you may have done some database juggling during upgrade and ended up using unupgraded database with an upgraded home directory.


author: Jonas Andersson
body: Yes, that's one of the steps described here:

<https://community.atlassian.com/t5/Questions/bamboo-cipher-keys-are-seemingly-not-generated/qaq-p/277225/comment-id/50431#M50431>

Lesson learned..


author: Jonas Andersson
body: Przemyslaw, do you know what keys in the BANDANA table that the keys rest in? Will try to extrude them and reinsert them into the database again.


author: Przemek Bruski
body: Anything that matches '%instance.cipher%'.


author: Jonas Andersson
body: No good still.. Have to take the windows approach on this (reinstall and try again). Can only hope this never happens on our production, because then i will lose my job.

comments: author: lamarant
body: so are you still employed? I just got the same error on a fresh/new install.


author: Ashley Lewis
body: I'm also getting this on a new install


Tags: cipher
Create issue without request type
Asked by Charlie Misonne:

I have a JSM project on Jira DC.

I need to allow agent to create issues of a specific type via Jira (not via portal) without request type.

The creation seems to work fine but as soon as the agent edits the issue a request type seems to be required. I'm quite sure it can be done on JSM Cloud, is it not supported on DC?

![2024-02-07 13_36_28-Edit Issue.png](/t5/image/serverpage/image-id/304917iFB84CF5687938FF1/image-size/large?v=v2&px=999 "2024-02-07 13_36_28-Edit Issue.png")


Answers:
author: Charlie Misonne
body: Found it: I removed the customer request type field from my edit screen and it works now.


author: Florian Bonniec
body: Hi [@Charlie Misonne](/t5/user/viewprofilepage/user-id/502263)

Do you have app such as Scriptrunner. You may have a Behaviour configured on this that require the field to have a value.

Regards

comments: author: Charlie Misonne
body: Hi Florian,

I have scriptrunner but no behaviors.

I now removed the customer request type field from my edit screen and it works! I guess it does not accept an empty value for some reason.

kind regards,

Charlie


Tags: jira-service-management

jira-service-management-server

server
ScriptRunner-Behaviours
Asked by Sravan_Maru:

In ScriptRunner, under Behaviours, there's a choice called 'on change fields' where we can run a script. However, I can't find an option to choose a specific field.


Answers:
author: Kristian Walker _Adaptavist_
body: Hi Sravan,

I can confirm in Jira Cloud you do not specify the field when configuring the script, as we parse the script and set the affected fields automatically when the script is saved.

To access a changed field, you can refer to the documentation [here](https://docs.adaptavist.com/sr4jc/latest/features/behaviours/behaviours-api#access-a-changed-field) and may find the examples [here](https://library.adaptavist.com/entity/auto-assign-issue-based-on-selected-priority?tab=cloud) and [here](https://library.adaptavist.com/entity/make-field-required-when-another-field-selected?tab=cloud) useful.

I hope this helps.

Regards,

Kristian

comments: author: Sravan_Maru
body: Thanks for your reply [@Kristian Walker _Adaptavist_](/t5/user/viewprofilepage/user-id/781617) ..  

I noticed in (ScriptRunner-Behaviours) **Jira Server/Data Center** that there's an 'Add field' option where we can run server scripts. How can I do that in Jira Cloud?


author: Kristian Walker _Adaptavist_
body: Hi Sravan,

In Jira Cloud as mentioned, you do not add a field as behaviours work differently due to the API's Atlassian provides.

You specify the view where you want to run the behaviour on and then write your script, and we extract the fields which need to be updated when the script is saved.

Please see a list of what fields are supported per view in Jira Cloud [here](https://docs.adaptavist.com/sr4jc/latest/features/behaviours#behaviours-supported-fields-).

Please see the docs page [here](https://docs.adaptavist.com/sr4jc/latest/features/behaviours/example-behaviour), which shows how to configure a behaviour inside of Jira Cloud.

Also, please note in Jira Cloud behaviours are written using JavaSript and not Groovy scripts like in the on-premise versions. Currently, behaviours only work for Jira Company Software and Work management projects as mentioned [here](https://docs.adaptavist.com/sr4jc/latest/features/behaviours#supported-platforms).

Regards,

Kristian


Tags: cloud

jira-service-management

jira-service-management-cloud
We are kindly requesting for addition of workflow for audit such that they can only view all request
Asked by CentricDataProjects:

We are kindly requesting for addition of workflow for audit such that they can only view all request in Jira i.e. both memos and Travel and subsistence and also be able export reports for all the issues in Jira. Your assistance is greatly appreciated.


Answers:
author: Rebekka Heilmann _viadee_
body: Hello [@CentricDataProjects](/t5/user/viewprofilepage/user-id/4898535)

you are posting in the Atlassian Community. I am not sure what you actually need help with but neither we as a Community nor the Atlassian Support (which has reps here as well) can/will access your instance and customize anything.

You can get advice on specific questions from the Community or help with technical Issues from the Support.

I think what you need is help from an Atlassian Partner though, that can talk to you about your requirements and help you customize your instance to your needs. You find the Partner Directory here: [Atlassian Partner Directory](https://partnerdirectory.atlassian.com/)

If you only have specific questions you will need to give us some more details on what you want to achieve and where you're struggling. The official documentation usually is of great help as well: [Jira Software Cloud resources \| Jira Software Cloud \| Atlassian Support](https://support.atlassian.com/jira-software-cloud/resources/)


Tags: cloud

jira-service-management

jira-service-management-cloud
Why are Issues not showing up in Service project agent Slack channel when moving an issue.
Asked by David Grech Calafato:

I am currently testing the Halp to Jira migration so created a few Halp queues and migrated them to separate Service Projects in Jira.

Now, when I try to move an issue from one Service Project to another from Jira Service Management they successfully do so. These issues should then reflect exactly in the respective Agent channel in Slack however, this has been a hit and miss and cannot figure out why the moved ticket sometimes show up in the agent slack channel and sometimes they don't. It is not a specific Service project that is not working it is inconsistent between all of above created service projects.

Any pointers will be highly appreciated! Thanks in advance!


Answers:
author: David Grech Calafato
body: For those who might be thinking about the above, this is a feature currently being worked on: <https://jira.atlassian.com/browse/JSDCLOUD-11593>.


Tags: cloud

jira-service-management

jira-service-management-cloud

jira-software-cloud
Custom plugins changes for Jira application upgrade from 8.5.17 to 9.12.2
Asked by Sandesh TM:

We need to have the Jira application upgrade from 8.5.17 to 9.12.2 and we have custom plugins developed by us. So, for custom plugins what needs to be analyzed and what are all the changes required for the upgrade?


Answers:
author: Nic Brough -Adaptavist-
body: Hi Sandesh,

There's no way we can tell you what might need to be done here, we don't have any access to your plugin's code.

For marketplace plugins, you should just go to "manage apps" and upgrade all the ones flagged as having an available upgrade.

But for your own apps, you are probably going to need to recompile it against the target version of Jira. You might find you do not need to, it is possible to write apps that work across many versions, but when jumping major versions of Jira (like from 8 to 9), I strongly recommend that you do recompile it.


author: Marc - Devoteam
body: Hi [@Sandesh TM](/t5/user/viewprofilepage/user-id/5305975)

I don't want to be blunt, but you should go over the release notes to find if actions need to be taken.


Tags: jira-service-desk-server

jira-service-management

jira-service-management-server
Get SLA metric information in a bulk for specifc JQL
Asked by Matus Klaudiny:

Hello Atlassian Community,   

Is there a way to leverage JSM Cloud API to get current values of SLA for a selected number of issues in one response?   

I am aware of the endpoint for single request:  

<https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-issueidorkey-sla-slametricid-get>

but due ti nature of the integration we are building we would need to get these in a bulk for larger number of issues/requests.  

Is this possible? :)  

Thank you


Answers:
author: Nikola Perisic
body: Hello [@Matus Klaudiny](/t5/user/viewprofilepage/user-id/5169969) ,

Sadly no this is not possible as per the API request you get the sla for a one issue.

This would be a great request to be asked in here: [https://jira.atlassian.com/browse/JRACLOUD-39926?filter=98703\&jql=project%20%3D%20JRACLOUD%20AND%20resolution%20%3D%20Unresolved%20AND%20text%20\~%20%22SLA%22](https://jira.atlassian.com/browse/JRACLOUD-39926?filter=98703&jql=project%20%3D%20JRACLOUD%20AND%20resolution%20%3D%20Unresolved%20AND%20text%20~%20%22SLA%22)


Tags: api

cloud

jira-service-management

jira-service-management-cloud

sla
Team-managed service management
Asked by Gintaras:

We use the JIRA Work Management product type Team-managed business and decided to test the JIRA Service Management product type Team-managed service management.

Since our company is not big, we are testing the Free version with 3 Agents. In the project, Internal Access brings its employees as Viewers, who will participate in the project by communicating with the Agent via Add internal note. Project access is Private.

The agent writes a message via Add internal note, receives an e-mail Internal Access/Viewer by mail. It then connects to the JIRA Service Management task and is automatically made Internal Access/Agent by the Internal Access/Viewer application. This way he immediately gets it as an additional Agent and then we automatically switch to the Standard plan. Why is that?

How can Internal Access/Viewer communicate with Agent so that its status does not change to Internal Access/Agent?


Answers:
author: Paul Wiggers
body: Hello [@Gintaras](/t5/user/viewprofilepage/user-id/5424205)

It sounds like you are trying to use Collaborators in your JSM project. These users do need a Jira license in order to be a Collaborator in your JSM project but don't require a JSM license.

There is no way to participate in a Jira or JSM project without having some kind of license.

Please take a look at this page to get more information about Collaborators (and other roles): [What are user types and roles?](https://support.atlassian.com/jira-service-management-cloud/docs/what-are-user-types-and-roles/)


Tags: cloud

jira-service-management

jira-service-management-cloud
Changing the order of resolutions per project
Asked by Pierangelo Repetti:

Hello,

At present, the order of Resolutions is the same for the whole Jira instance.

We'd like to change the order and the default of Resolutions*by project*(Company-managed projects only).

For instance, Project A has a default of Unresolved and shows Won't do as second choice. Project B has a default of Done and shows Unresolved as second choice.

Is that possible ?

Thank you


Answers:
author: Sharu - Empyra
body: Hi [@Pierangelo Repetti](/t5/user/viewprofilepage/user-id/1243760)

Currently the feature to re-order the resolution based on the project level is not available. There is a ticket with Atlassian, you can watch \& vote the ticket. You'll be notified if they have any feature development - <https://jira.atlassian.com/browse/JSWCLOUD-24167>

But if you would like to limit the resolution based on the project, you can achieve it through the workflow properties. Kindly check out this - <https://valiantys.com/en/blog/atlassian-administration/jira-workflow-limiting-resolution-field-options/>

Hope this helps!

Thanks,

Sharu

Empyra Software Solutions

comments: author: Pierangelo Repetti
body: Thanks [@Sharu - Empyra](/t5/user/viewprofilepage/user-id/5306820) I see the feature has currently just one vote...no hope to see it implemented I guess. Anyway, I'll add mine.


author: Nikola Perisic
body: Hello [@Pierangelo Repetti](/t5/user/viewprofilepage/user-id/1243760)

Yes, the order can be changed.

To do this:

1. Press a dot on your keyboard and type Resolutions (much faster way)
2. You will be presented with this screen:![Screenshot 2024-02-07 at 09.42.27.png](https://community.atlassian.com/t5/image/serverpage/image-id/304851i475961683C08E0B2/image-size/large?v=v2&px=999 "Screenshot 2024-02-07 at 09.42.27.png")

3. Use the arrows within the Order column to move them up and down - for example Done was first, I clicked on the down arrow and it moved down

comments: author: Pierangelo Repetti
body: Hi [@Nikola Perisic](/t5/user/viewprofilepage/user-id/5166624)

that's an order valid for all the projects in our Jira. I want to change the order for just one project.

Thank you


author: Nikola Perisic
body: Sadly no, this cannot be changed per project, it reflects to all of the projects


Tags: cloud

jira-service-management

jira-service-management-cloud

resolution
Clarity about allowing customers to add attachments to form in JSM
Asked by Sabira Khan:

Hello Community,

How can we allow "Attachments" to forms so that customer submitting requests using Jira Service Management, can attach photos / videos / pdf etc. please?  

We kept everything default, I expected attachments option to be present by default.

![Screenshot (1210).png](https://community.atlassian.com/t5/image/serverpage/image-id/304832i6FED3F099880DED7/image-size/large?v=v2&px=999 "Screenshot (1210).png")


Answers:
author: Sharu - Empyra
body: Hi [@Sabira Khan](/t5/user/viewprofilepage/user-id/5424181)

Can you please make sure that you have added "Attachment" field to the request form of request type. If you have added, then it must be visible in the customer portal.

![attachment.png](https://community.atlassian.com/t5/image/serverpage/image-id/304876i81E7EA3051BBF625/image-size/large?v=v2&px=999 "attachment.png")

Hope this helps!

Thanks,

Sharu

Empyra Software Solutions

comments: author: Sabira Khan
body: Thank you Sharu!  
I had not added it actually, I had kept everything to default. But now after adding it, all's well.


Tags: cloud

jira-service-management

jira-service-management-cloud
Create Epics and Stories automation after a Initiative is Created
Asked by GeeLong:

Hi there - Seeking suggestions for creating a series of Epics and Stories after an Initiative is created manually.   

When an Initiative is created, the following to be created via jira automation

* Create of 3 Epics and
* 6 Stories to be assigned under each these Epics

As a starting point, have setup an automation to create an Epic and Story. There were errors in my attempt and didn't manage to go further from here.  

Below are my observations   

1. Epic and Story were created

2. Parent of Story was not linked.

3. Based on the audit log it appears conditions were not met.

![Screenshot 2024-02-07 181927.png](https://community.atlassian.com/t5/image/serverpage/image-id/304828i1ADD363AD6597091/image-size/large?v=v2&px=999 "Screenshot 2024-02-07 181927.png")

Rules to create Epic and Story

![Screenshot 2024-02-07 182605_2_1.png](https://community.atlassian.com/t5/image/serverpage/image-id/304829i7C9022CDA2DFBFFC/image-size/large?v=v2&px=999 "Screenshot 2024-02-07 182605_2_1.png")![Screenshot 2024-02-07 182531_3.png](https://community.atlassian.com/t5/image/serverpage/image-id/304830i4FADEF27AD5C22F1/image-size/large?v=v2&px=999 "Screenshot 2024-02-07 182531_3.png")  

<br />


Answers:
author: Tansu Akdeniz
body: Hi [@GeeLong](/t5/user/viewprofilepage/user-id/5287097)

What about separating the rules? I mean different rule for story creation?

* When Epic is created, create Stories.

The following checkbox needs to be enabled in new rule details section:

![rule details.png](https://community.atlassian.com/t5/image/serverpage/image-id/304854iEC029D7379691AEC/image-dimensions/411x69?v=v2 "rule details.png")


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud