youngmon/atlassian-qna huggingface dataset:
Get TaskContext From AbstractTaskConfigurator Class
Asked by Victor Sz:

I want to populate the default values (in GUI / FTL) of my task based on TaskContext.

<br />

I'm my case, I want to show all available DeploymentProjects for this plan (as used by task).

This can be easily achived inside of my task using : deploymentProjectService.getDeploymentProjectsRelatedToPlan(parentPlanKey) ... since I have access to the TaskContext.

I'm not however sure how to achive this in my Configuration Class .. which extends from AbstractTaskConfigurator.

Thanks


Answers:
author: Marcin Gardias
body: First of all, you should not use server-side services in Tasks implementations, they are only allowed to be used in Configurators.

As it is, your task will fail on remote agents. You should make sure all data you need to execute task is either stored in task configuration or injected into RuntimeTaskDefinition using RuntimeTaskDataProvider class.

Answering your question:

```
public void populateContextForEdit(@NotNull final Map<String, Object> context, @NotNull final TaskDefinition taskDefinition) {     PlanKey parentPlanKey = TaskContextHelper.getPlan(context).getPlanKey();deploymentProjectService.getDeploymentProjectsRelatedToPlan(parentPlanKey)//....}
```


Tags: bamboo-app

bamboo-development
Bamboo plugin does not get enabled, faces timeout
Asked by Tushar Sikand:

Hi,

I created a custom plugin in Bamboo and installed it in the bamboo-home/plugins folder. When I try to enable it, I get the following error even after increasing the timeout:

2017-06-14 16:03:28,258 ERROR \[http-apr-8085-exec-25\] \[OsgiPluginInstalledHelper\] Cannot determine required plugins, cannot resolve bundle 'myfirstplugin1'  
2017-06-14 16:05:58,974 INFO \[17-BAM::Default Agent::Agent:pool-32-thread-1\] \[BuildAgentControllerImpl\] Agent 196609 checking build queue for executables...  
2017-06-14 16:08:28,632 ERROR \[http-apr-8085-exec-25\] \[PluginEnabler\] Unable to start the following plugins due to timeout while waiting for plugin to enable: myfirstplugin1.myfirstplugin1

Please help.

Thanks! :-)


Answers:
author: Jean Volski
body: Hi Tushar,

I suggest you use this link to help build your plugin:

<https://developer.atlassian.com/server/bamboo/bamboo-plugin-guide/>

Once you have the base plugin working, you can add more functionality on top.

Cheers,

Jean


Tags: app
auto deploy war onto all Windows servers questions
Asked by chan:

Hi,

I want achive the following:

1. Must apache tomcat process.

2. Backup existing .war

3. Delete exisitng .war and temporary localhost folders.

4. Start the apache tomcat process

5. Verify if the version of .war deploy

6. Rollback if the .war is in error.

Note: All were Windows server 2012++.

How can I suppose to achive this using Bamboo?

I noticed I need to enable WRM service on all Windows Server first.

Please advise.

Thank you.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Please, just use the steps in stage. And use scripts e.g. Powershell steps


Tags: apache

server

tomcat

windows
Does the gatekeeper feature for bamboo (self-hosted, internal) work with bitbucket cloud?
Asked by alex_evans426:

We have bamboo self-hosted on our internal network. We were wondering if there is a way to use the gatekeeper feature of bamboo with bitbucket cloud. I don't think it's possible because bitbucket cloud shouldn't be able to communicate with bamboo if bamboo is internal, but I wanted to ask just to make sure.

Gatekeeper feature - <https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html>


Answers:
author: Przemek Bruski
body: As long as the server has access to bitbucket cloud, it will work.

comments: author: alex_evans426
body: How does bitbucket cloud let bamboo know to run a build before accepting the changes?


Tags: bitbucket-cloud

gatekeeper
Disable Branch Management with Bamboo Specs
Asked by Sebastien Erard:

I'm trying to use bamboo specs to manage our plan in bamboo, and as I'm, using perforce to store our code, I need to disable the bamboo's branch management.

I have

```
planBranchManagement(new PlanBranchManagement().createManually())
```

in my plan specification, but bamboo refuse my plan with the same error.

```
BambooSpecsRestRequestException: Plan branch / workflow: Default plan repository?doesn't support 'BRANCH' workflow. Don't use it or choose another repository as default
```

Thanks for your help


Answers:
author: Marcin Gardias
body: This is confirmed bug that is going to be fixed in Bamboo 6.1.


Tags: automation

perforce

spec
I took license for 5.14 version. if I go for upgrade to 5.15.7 is it valid?
Asked by simhadri mallikarjun:

with out paying extra amount am I eligible for upgrading bamboo?

I took license for self-hosted bamboo. provide me the full details for this upgrading bamboo versions


Answers:
author: Maarten Cautreels
body: Hi Simhadri,

A license is usually valid for a year and during that year, you'll get free upgrades to new versions released within that period (and support from Atlassian).

Bamboo 5.14 was released in October 2016 so I think that should not be a problem. If you really want to be sure you should be able to find your license and expiration date on [my.atlassian.com](https://my.atlassian.com)

Best,

Maarten
Process polkitd using 100% of CPU on Bamboo Server
Asked by peterst28:

Our Bamboo Server ([Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 5.14.4.1 build 51417 - 12 Jan 17) on Ubuntu 16.04.2 LTS has been running painfully slowly for a couple of weeks. I logged into the server, ran top, and saw the following:

```
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND 1351 bamboo    20   0  222692   3376   1024 S 100.0  0.1  40:39.93 polkitd 1350 bamboo    20   0  222692   3384   1024 S  99.7  0.1  40:38.74 polkitd
```

I have tried to figure out what these processes are doing, but I have seen nothing interesting.

ps:

```
ubuntu@ip-172-31-32-221:~$ sudo ps -ef | grep 1351bamboo    1351     1 93 16:24 ?        00:43:54 ./polkitd -c oybmfqrnv.conf -t 1
```

Strace:

Looks like it's just waiting.

```
ubuntu@ip-172-31-32-221:~$ sudo strace -f -p 1350strace: Process 1350 attached with 4 threadsstrace: [ Process PID=1359 runs in x32 mode. ][pid  1357] futex(0x2648a94, FUTEX_WAIT_PRIVATE, 13, NULL <unfinished ...>[pid  1350] futex(0x7f1a7e7d29d0, FUTEX_WAIT, 1357, NULL <unfinished ...>[pid  1358] select(4, [3], NULL, NULL, {593, 77339} <unfinished ...>[pid  1359] gettimeofday(0x7f1a7d7cfcf0, NULL) = 0strace: [ Process PID=1359 runs in 64 bit mode. ][pid  1359] gettimeofday({1497373791, 989477}, NULL) = 0
```

lsof:

```
ubuntu@ip-172-31-32-221:~$ sudo lsof -p 1351COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF   NODE NAMEpolkitd 1351 bamboo  cwd    DIR  202,1     4096 269040 /var/tmppolkitd 1351 bamboo  rtd    DIR  202,1     4096      2 /polkitd 1351 bamboo  txt    REG  202,1  1200944 262342 /var/tmp/polkitdpolkitd 1351 bamboo    0r   CHR    1,3      0t0      6 /dev/nullpolkitd 1351 bamboo    1w   CHR    1,3      0t0      6 /dev/nullpolkitd 1351 bamboo    2u   REG  202,1    11194    880 /tmp/tmpfj1lOZF (deleted)polkitd 1351 bamboo    3u  IPv4  16649      0t0    TCP ip-172-31-32-221.ec2.internal:40513->ns3004370.ip-176-31-117.eu:http (ESTABLISHED)
```

tcpdump:

Not much happening.

```
ubuntu@ip-172-31-32-221:~$ sudo tcpdump port 40513tcpdump: verbose output suppressed, use -v or -vv for full protocol decodelistening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes17:13:38.807610 IP ip-172-31-32-221.ec2.internal.40513 > ns3004370.ip-176-31-117.eu.http: Flags [.], ack 3445976208, win 596, options [nop,nop,TS val 676992 ecr 1367780029], length 017:13:38.889476 IP ns3004370.ip-176-31-117.eu.http > ip-172-31-32-221.ec2.internal.40513: Flags [.], ack 1, win 310, options [nop,nop,TS val 1367792571 ecr 670748], length 0
```


Answers:
author: Gonchik Tsymzhitov
body: Looks like it was this one

<https://access.redhat.com/discussions/3534761>
Bamboo Agent running as SYSTEM account
Asked by John Clarete:

Hi,

We have a bamboo agent installed on a Windows server and is running as a service. On the service it's setup to log on using one of our domain service accounts i.e. svc_bamboo_agent. The problem I have is that when I run a simple bamboo Script task on the agent 'echo %username%' it's displaying as 'SYSTEM' instead of the expected 'svc_bamboo_agent'. Why is this? How do I change it so the script is run under the service account 'svc_bamboo_agent?  

Cheers


Answers:
author: Christian Glockner
body: Hi John,

It seems like this is a known issue on Windows.

The good news is that the process should still be running as **svc_bamboo_agent** - just try running **whoami** in your script task - you should find that that returns **svc_bamboo_agent** , and it's really just the **%USERNAME%** variable that's incorrectly set by Windows.

If you depend on that variable, you can set it to the actual username as part of your script task.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: John Clarete
body: Awesome thanks.


author: Paul Chavez
body: I don't think this is an issue with Windows, it's more of a problem with the Tanuki wrapper that runs the agent, which does some [black magic](http://sourceforge.net/p/wrapper/bugs/168/) to load the environment, messing things up in the process, e.g., [this other issue](https://confluence.atlassian.com/bamkb/bamboo-or-remote-agent-does-not-pick-up-the-path-environment-variable-correctly-when-running-as-a-windows-service-323982768.html) with the PATH variable.

I've wasted so much time because of this - it's not even funny. I even messed with the agent's JAR file trying to get it to run as my custom user, because I kept thinking the problem was the service running as SYSTEM... at least this post saved me from going mad.


Tags: agent

user
Bamboo rest api: Result range does not work
Asked by Fernandel Toto:

Hi,

I hit this endpoint expecting the last two results:

```
curl --user myuser:secret -g http://localhost:8085/rest/api/latest/result.json?expand=results[0:2].result
```

I get only one (latest) result.

I have 3 dozen results in this plan. Please let me know what I am missing.

Thank you.


Answers:
author: m93
body: Try this one:

```
/result/{projectKey}-{buildKey}/{buildNumber:([0-9]+)|(latest)}?expand&favourite&start-index&max-results 
```

```
/rest/api/latest/result/{projectKey}-{buildKey}.json?max-result=2
```

comments: author: Fernandel Toto
body: Thank you.
Jira Service Management - NetSuite integration
Asked by Sergey Mozgunov:

Hello Dears,

I'm looking for solution where I could utilise JSM as frontend interface for business for Procurement matters. Long story short, would be great to able to approve PR/PO (filled out completely with all details required) in JSM and "push" the final result to NetSuite to generate PO over there.  
Is there anyone on the market who did something like that ?


Answers:
author: Zoey Wang
body: Hey [@Sergey Mozgunov](/t5/user/viewprofilepage/user-id/5426288) if you are looking for a third-party tool integrating JSM with Netsuite, here is a platform called Skyvia <https://skyvia.com/data-integration/integrate-netsuite-jira-service-management> might interest you.

It seems that there are different data structures available across JSM and Netstuite. Also no coding is needed during integration.

I haven't used it before so the above information is just second-handed.

Hope that helps in some way. Good luck!


author: Vincent Mutambuki { Mumo Systems }
body: [@Sergey Mozgunov](/t5/user/viewprofilepage/user-id/5426288) - Take a look at [Checkout - Procurement for Jira](https://marketplace.atlassian.com/apps/1221015/checkout-procurement-for-jira-service-management?hosting=cloud&tab=overview) . Even though you can generate the PO directly in Checkout, you should be able to send the details to Netsuite using a web hook. Netsuite will need to know how to parse the JSON that is sent to it to create a PO.


Tags: cloud

jira-service-management

jira-service-management-cloud
Is it possible to edit the maximum processes to be displayed?
Asked by Sascha Fromme:

Hallo,

we are going to migrate our Jira/Confluence Server to the Cloud, but this will take some time. Meanwhile we stumbled upon an issue that i can't find how to solve it. In one of our projects we get an Announcement from Jira that the maximum processes to be displayed (3.000) is exeeded (3.109). Is there a way to raise that number in the Server Version and is there a difference to the cloud version (higher values)?

Sorry for my german english =), but i hope it is possible to understand and someone can help me.

Greets,

Sascha


Answers:
author: Sharu - Empyra
body: Hi [@Sascha Fromme](/t5/user/viewprofilepage/user-id/5425348)

I am not sure about the exact issue which you are facing currently. But I can point you to the [Atlassian Support](https://support.atlassian.com/)

Atlassian actually provides support to users who are migrating from server to cloud. You can raise the support request with them including your instance link and the screenshot of the error message, and they will be able to resolve the issue at the earliest.

Thanks,

Sharu

Empyra Software Solutions


Tags: jira-core-server

jira-service-management

jira-service-management-server

server
Automation to send email notification to users in project role
Asked by shivani shirguppi:

I want to send an email notification to users in perticular project role.

I have created an automation but I am unable to see an option as project to sent email to.

How can I create it?


Answers:
author: Igor Medeiros - Modus Create
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115)

This is Igor from Modus Create and I believe that our app Notification Assistant for Jira can solve this problem for you.

Our documentation is available at <https://atlasauthority.atlassian.net/wiki/spaces/NAFJC/overview>.

Feel free to get in touch with our team!


author: RMahajan
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115) ,  

This is still an open feature request in the Automation Backlog.  

The best approach would be to create a Jira Group with all the project members and manage it for the members. After that, you can communicate by sending emails to the group.  

Regards,  
RMahajan


author: K vivek Rao
body: Hello [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115)

I am vivek from Appfire,

If you have the [JMWE app](https://marketplace.atlassian.com/apps/292/jira-misc-workflow-extensions-jmwe?tab=overview&hosting=cloud) installed on your cloud instance, you can fulfill this requirement by taking the following steps:

1. Add the "Email issue(s) Post-function" on workflow transition.
2. In the configuration, you will have the option to select the project role to whom you'd like to send the email.

I am from Appfire, the vendor of the JMWE app.

BR,  
Vivek


author: Mayuresh Kamble
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115) ,

You can refer to the documentation [here](https://confluence.atlassian.com/jirakb/send-email-to-a-project-role-1252330233.html) to create the automation and see if it works.

Regards,  
Mayuresh


Tags: cloud

jira-service-management

jira-service-management-cloud
How to set up "not accepted" button behavior
Asked by Nicolas Rigaill:

Hi everyone,

I have a question about the "Not accepted" feature available for requester through the portal :

![2024-02-09_10h47_20.png](/t5/image/serverpage/image-id/305402i9EEDC44991315900/image-size/large?v=v2&px=999 "2024-02-09_10h47_20.png")

When the customer clicks on this button, the ticket is automatically sent back to its first status and assignee is set to unassigned.

Does anyone know how to set up this behavior to at least select automatically an assignee ?

Thank you,

Nicolas


Answers:
author: Rebekka Heilmann _viadee_
body: Hi [@Nicolas Rigaill](/t5/user/viewprofilepage/user-id/5041515)

This is a Workflow transition that is shown to the Customer. You can set it up/edit it in the Workflow Editor. You will have to check the Workflow that is used by the underlying Issue Type for this request type.

[Show a workflow transition in the portal \| Jira Service Management Cloud \| Atlassian Support](https://support.atlassian.com/jira-service-management-cloud/docs/show-a-workflow-transition-in-the-portal/)  
[Edit an issue workflow \| Atlassian Support](https://support.atlassian.com/jira-cloud-administration/docs/edit-an-issue-workflow/)

A Workflow transition doesn't usually clear the Assignee so it's either a post function or it could also be an Automation rule that is set up in your project.

comments: author: Nicolas Rigaill
body: Thank you!


Tags: cloud

jira-service-management

jira-service-management-cloud
Resolved date is not displaying in the issues
Asked by Nafeela Naflee:

Resolved date isn't appearing in the issues.

![JIRA 112.jfif](https://community.atlassian.com/t5/image/serverpage/image-id/305427i2DA0F7CA5424B9B4/image-dimensions/289x167?v=v2 "JIRA 112.jfif")


Answers:
author: Nikola Perisic
body: Welcome to the community [@Nafeela Naflee](/t5/user/viewprofilepage/user-id/5426164) !

These are the default placeholders when the issue was created and updated. If you want to have a resolved date included, you would need to:

1. Create a custom field named Resolved Date which will also have the value of date picker
2. Create an automation rule when the issue is transitioned to the Done status and resolution is put to resolved - (this needs to be involved in your workflow as post function which will update the Done status with Resolved resolution) which will fill the Resolved date with the date when it was resolved - this would include adding additional smart values within the automation field which is {{now}}


author: Hannes Obweger - JXL for Jira
body: Hi [@Nafeela Naflee](/t5/user/viewprofilepage/user-id/5426164),

just to add to Nikola's answer: If you would want to see the resolved date for lists of issues, you may want to have a look at the app that my team and I are working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2604226).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you'd do in e.g. Excel or Google Sheets. It also comes with many columns that aren't natively available, including the *resolved date* (but also e.g. the *time since resolved* , and the *time between created and resolved*).

This is how it looks in action:

![resolution-date.gif](https://community.atlassian.com/t5/image/serverpage/image-id/305619iB3ACFBE7B4CB0796/image-size/large?v=v2&px=999 "resolution-date.gif")

As you can see above, you can easily sort and filter by the resolution date; you can also use it across JXL's advanced features, such as support for (configurable) *issue hierarchies* , *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting*.

This all *just works*- there's no scripting or automation whatsoever required.

Any questions just let me know,

Best,

Hannes


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
csv import with assett object custom field values
Asked by Matej ?trba:

Dear Community,

I am reaching out to seek guidance on importing .csv files into Jira Service Management in Cloud. Our objective is to efficiently create multiple JIRA issues under a single Epic, with the issues being populated using the data provided in a .csv file.

The challenge arises with the custom fields designated as asset object types. The import process is unsuccessful when the data for these asset object type fields is presented in a format that is readily understandable by humans.

To better understand this, I conducted the process inversely by exporting issues that contain asset object custom field values into a .csv file. Upon examination, I noticed that the data for asset object custom fields appears in an unusual format:

![Screenshot 2024-02-09 at 10.43.48.png](/t5/image/serverpage/image-id/305401i9B0FC73AB4ADC61A/image-dimensions/363x72?v=v2 "Screenshot 2024-02-09 at 10.43.48.png")

Could someone explain to me the nature of this format?

Additionally, I am interested in learning if there is a viable method to import issues from a .csv file that includes asset object field values without encountering errors. And one more unpleasant piece of information: Custom fields are multi-select type :/

Appreciate your time and assistance on this matter.

Best regards,

Matej


Answers:
author: Hannes Obweger - JXL for Jira
body: Hi [@Matej ?trba](/t5/user/viewprofilepage/user-id/5397776),

welcome to the community!

If you're open to solutions from the Atlassian Marketplace, you may want to have a look at the app that my team and I are working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2604094).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields - including any Assets fields - much like you'd do in e.g. Excel or Google Sheets. It also allows bulk editing via *copy/paste* - within JXL, but also between JXL and pretty much any other tool, including Excel or Google Sheets. For assets, this copy/paste operation works based on the asset's *name*, as opposed to its (non-human-readable) ID.

This is how this looks in action (*Inventory* is an assets field):

![asset-copy-paste.gif](https://community.atlassian.com/t5/image/serverpage/image-id/305621i40553CC52EA95882/image-size/large?v=v2&px=999 "asset-copy-paste.gif")

This is a copy/paste operation *within* a JXL sheet - but if you'd open a CSV file with asset names in e.g. Excel, copy your cells there, and paste them to JXL, that would work as well.

(You can also use assets across JXL's many advanced features, such as support for (configurable) *issue hierarchies* , *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting*.)

Any questions just let me know,

Best,

Hannes


Tags: cloud

jira-service-management

jira-service-management-cloud
Avoid rule to run depending on the comment owner.
Asked by Jonathan M_:

Hello people,

I created a rule that send and AUTO response (email) when a jira case status is set to CLOSED.

Situation is that rule triggers IF someone comment on the JIRA ticket and the purpose of the rule is to trigger only when reporter or "shared email" comment on the ticket.

Is there a way to prevent this from maybe an IF??

Something like:

IF the person that comment is not the OWNER of the ticket then TRIGGER and send the email.

Thanks in advance!

Jonathan M.


Answers:
author: John Funk
body: Hi Jonathan - Welcome to the Atlassian Community!

You might try adding an Advanced Condition and use:

{{issue.comments.last.author}} not equal to {{issue.assignee}}


Tags: cloud

jira-service-management

jira-service-management-cloud
Check feasibility to setup workflows and automation rule at global level
Asked by Rupali Mohanty:

How to set up workflows and automation rule at global level


Answers:
author: John Funk
body: Hi Rupali,

You should create a company managed project. Then you can create a workflow scheme using any workflows that you want based on issue type.

then, as you create additional projects, you can attach them to the same workflow scheme.

for automation rules, go to settings \> System \> Global automation. There you can create automation rules that are global in nature.


Tags: cloud

jira-service-management

jira-service-management-cloud